veggiebird/sparql-contrastive
收藏Hugging Face2023-09-11 更新2024-06-15 收录
下载链接:
https://hf-mirror.com/datasets/veggiebird/sparql-contrastive
下载链接
链接失效反馈官方服务:
资源简介:
---
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: test
path: data/test-*
dataset_info:
features:
- name: instruction
dtype: string
- name: input
dtype: string
- name: output
dtype: string
splits:
- name: train
num_bytes: 15605885.6
num_examples: 15208
- name: test
num_bytes: 3901471.4
num_examples: 3802
download_size: 4081716
dataset_size: 19507357.0
---
# Dataset Card for "sparql-contrastive"
## Example:
**instruction:** Generate a correct SPARQL query that returns the answer of the following question. Generate four incorrect SPARQL queries of different types.
**input:** What periodical literature does Delta Air Lines use as a moutpiece?
**output:** Correct query: select distinct ?obj where { wd:/Delta Air Lines/ wdt:/house publication/ ?obj . ?obj wdt:/instance of/ wd:/periodical/ } \nIncorrect query 1: select distinct ?obj where { Delta Air Lines wdt:/house publication/ ?obj . ?obj wdt:/instance of/ wd:/periodical/ }\nIncorrect query 2: select distinct ?obj { wd:/Delta Air Lines/ wdt:/house publication/ ?obj . ?obj wdt:/instance of/ wd:/magazine/ }\nIncorrect query 3: select distinct ?obj where { wd:/Delta Airlines/ wdt:/house publication/ ?obj . ?obj wdt:/instance of/ wd:/periodical/ }\nIncorrect query 4: select distinct ?obj where { ?obj wdt:/instance of/ wd:/magazine/ . wd:/Delta Air Lines/ wdt:/house publication/ ?obj . }
[More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
提供机构:
veggiebird
原始信息汇总
数据集卡片 "sparql-contrastive"
数据集配置
- 配置名称: default
- 数据文件:
- 训练集: data/train-*
- 测试集: data/test-*
- 数据文件:
数据集信息
- 特征:
- instruction: 类型为字符串
- input: 类型为字符串
- output: 类型为字符串
- 分割:
- 训练集:
- 字节数: 15605885.6
- 样本数: 15208
- 测试集:
- 字节数: 3901471.4
- 样本数: 3802
- 训练集:
- 下载大小: 4081716
- 数据集大小: 19507357.0
示例
- instruction: 生成一个正确的SPARQL查询,返回以下问题的答案。生成四个不同类型的错误SPARQL查询。
- input: Delta Air Lines使用什么期刊作为喉舌?
- output:
- 正确查询: select distinct ?obj where { wd:/Delta Air Lines/ wdt:/house publication/ ?obj . ?obj wdt:/instance of/ wd:/periodical/ }
- 错误查询1: select distinct ?obj where { Delta Air Lines wdt:/house publication/ ?obj . ?obj wdt:/instance of/ wd:/periodical/ }
- 错误查询2: select distinct ?obj { wd:/Delta Air Lines/ wdt:/house publication/ ?obj . ?obj wdt:/instance of/ wd:/magazine/ }
- 错误查询3: select distinct ?obj where { wd:/Delta Airlines/ wdt:/house publication/ ?obj . ?obj wdt:/instance of/ wd:/periodical/ }
- 错误查询4: select distinct ?obj where { ?obj wdt:/instance of/ wd:/magazine/ . wd:/Delta Air Lines/ wdt:/house publication/ ?obj . }



