Simple Question (Direct)
Simple Question
Q3760509
P734
Q82799
USER
Who is associated with George Graham ?
(Q3760509,P734,c(Q82799))
action filter_type
action find
entity Q3760509
relation P734
type Q82799
['Q3760509', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?b WHERE { resource:Q3760509 property:P734 ?b . ?b rdf:type ontology:Q82799 }
George Graham
action filter_type
action find
entity George Graham
relation family name
type name
['George Graham', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?b WHERE { resource:George_Graham property:family_name ?b . ?b rdf:type ontology:name }
[]
name
Q2702454
SYSTEM
Graham
Q2702454
(Q3760509,P734,c(Q82799))
action filter_type
action find
entity Q3760509
relation P734
type Q82799
He [ANSWER] is associated with George [ANSWER]
['Q3760509', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?b WHERE { resource:Q3760509 property:P734 ?b . ?b rdf:type ontology:Q82799 }
Graham
He Graham is associated with George Graham
Graham
action filter_type
action find
entity George Graham
relation family name
type name
['George Graham', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?b WHERE { resource:George_Graham property:family_name ?b . ?b rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3760509
P21
Q290
USER
What is the sex of George Graham ?
(Q3760509,P21,c(Q290))
action filter_type
action find
entity Q3760509
relation P21
type Q290
['Q3760509', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q3760509 property:P21 ?k . ?k rdf:type ontology:Q290 }
George Graham
action filter_type
action find
entity George Graham
relation gender
type sex
['George Graham', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:George_Graham property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3760509,P21,c(Q290))
action filter_type
action find
entity Q3760509
relation P21
type Q290
The sex of George Graham is a [ANSWER]
['Q3760509', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q3760509 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
The sex of George Graham is a male
male
action filter_type
action find
entity George Graham
relation gender
type sex
['George Graham', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:George_Graham property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4829538
Q290
USER
And how about Avtar Saini?
(Q4829538,P21,c(Q290))
action filter_type
action find
entity Q4829538
relation P21
type Q290
['Q4829538', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q4829538 property:P21 ?b . ?b rdf:type ontology:Q290 }
Avtar Saini
action filter_type
action find
entity Avtar Saini
relation gender
type sex
['Avtar Saini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Avtar_Saini property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4829538,P21,c(Q290))
action filter_type
action find
entity Q4829538
relation P21
type Q290
[ANSWER]
['Q4829538', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q4829538 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Avtar Saini
relation gender
type sex
['Avtar Saini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Avtar_Saini property:gender ?b . ?b rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P21
Q16335296 Q11019
USER
How many historical professions and machines are a that sex ?
(c(Q16335296),P21,Q6581097) (c(Q11019),P21,Q6581097) (c(Q16335296),P21,Q6581097) (c(Q11019),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q16335296
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q11019
[{'concept': 'Q16335296'}, 'P21', 'Q6581097'] [{'concept': 'Q11019'}, 'P21', 'Q6581097'] [{'concept': 'Q16335296'}, 'P21', 'Q6581097'] [{'concept': 'Q11019'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:Q16335296 ) ( ontology:Q11019 ) } }
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type historical profession
action filter_type
action find_reverse
entity male
relation gender
type machine
[{'concept': 'historical profession'}, 'gender', 'male'] [{'concept': 'machine'}, 'gender', 'male'] [{'concept': 'historical profession'}, 'gender', 'male'] [{'concept': 'machine'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:historical_profession ) ( ontology:machine ) } }
[]
historical profession machine
SYSTEM
1 historical professions and 1 machines
Q16330882 Q12313022
(c(Q16335296),P21,Q6581097) (c(Q11019),P21,Q6581097) (c(Q16335296),P21,Q6581097) (c(Q11019),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q16335296
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q11019
[ANSWER]
[{'concept': 'Q16335296'}, 'P21', 'Q6581097'] [{'concept': 'Q11019'}, 'P21', 'Q6581097'] [{'concept': 'Q16335296'}, 'P21', 'Q6581097'] [{'concept': 'Q11019'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:Q16335296 ) ( ontology:Q11019 ) } }
Crystallia Fritz Brun
1 historical professions and 1 machines
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type historical profession
action filter_type
action find_reverse
entity male
relation gender
type machine
[{'concept': 'historical profession'}, 'gender', 'male'] [{'concept': 'machine'}, 'gender', 'male'] [{'concept': 'historical profession'}, 'gender', 'male'] [{'concept': 'machine'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:historical_profession ) ( ontology:machine ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3852849 Q2702454
P1412 P407
Q34770
USER
Which languages are the languages of work for Graham or can Mauro Magni understand ?
OR((Q2702454,P407,c(Q34770)), (Q3852849,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q2702454
relation P407
action find
entity Q3852849
relation P1412
type Q34770
{'OR': [['Q2702454', 'P407', {'concept': 'Q34770'}], ['Q3852849', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q2702454 property:P407 ?t } UNION { resource:Q3852849 property:P1412 ?t } } . ?t rdf:type ontology:Q34770 }
Mauro Magni Graham
action filter_type
action union
action find
entity Graham
relation language of work or name
action find
entity Mauro Magni
relation languages spoken, written or signed
type language
{'OR': [['Graham', 'language of work or name', {'concept': 'language'}], ['Mauro Magni', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Graham property:language_of_work_or_name ?t } UNION { resource:Mauro_Magni property:languages_spoken,_written_or_signed ?t } } . ?t rdf:type ontology:language }
[]
language
Q652 Q1860
SYSTEM
Italian, English
Q652 Q1860
OR((Q2702454,P407,c(Q34770)), (Q3852849,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q2702454
relation P407
action find
entity Q3852849
relation P1412
type Q34770
[ANSWERS] are the languages of work for Graham or can Mauro Magni understand
{'OR': [['Q2702454', 'P407', {'concept': 'Q34770'}], ['Q3852849', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q2702454 property:P407 ?t } UNION { resource:Q3852849 property:P1412 ?t } } . ?t rdf:type ontology:Q34770 }
Italian English
Italian and English are the languages of work for Graham or can Mauro Magni understand
Italian English
action filter_type
action union
action find
entity Graham
relation language of work or name
action find
entity Mauro Magni
relation languages spoken, written or signed
type language
{'OR': [['Graham', 'language of work or name', {'concept': 'language'}], ['Mauro Magni', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Graham property:language_of_work_or_name ?t } UNION { resource:Mauro_Magni property:languages_spoken,_written_or_signed ?t } } . ?t rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3852849
P19
Q56061
USER
Where was that person born ?
(Q652,P19,c(Q56061)) (Q1860,P19,c(Q56061))
action filter_type
action find
entity Q3852849
relation P19
type Q56061
['Q652', 'P19', {'concept': 'Q56061'}] ['Q1860', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q3852849 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Mauro Magni
action filter_type
action find
entity Mauro Magni
relation place of birth
type administrative territorial entity
['Italian', 'place of birth', {'concept': 'administrative territorial entity'}] ['English', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Mauro_Magni property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q490
SYSTEM
Milan
Q490
(Q652,P19,c(Q56061)) (Q1860,P19,c(Q56061))
action filter_type
action find
entity Q3852849
relation P19
type Q56061
That person was born in [ANSWER]
['Q652', 'P19', {'concept': 'Q56061'}] ['Q1860', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q3852849 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Milan
That person was born in Milan
Milan
action filter_type
action find
entity Mauro Magni
relation place of birth
type administrative territorial entity
['Italian', 'place of birth', {'concept': 'administrative territorial entity'}] ['English', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Mauro_Magni property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q490
P1376
Q1307214
USER
What has that administrative territory as its capital ?
(Q490,P1376,c(Q1307214))
action filter_type
action find
entity Q490
relation P1376
type Q1307214
['Q490', 'P1376', {'concept': 'Q1307214'}]
SELECT DISTINCT ?z WHERE { resource:Q490 property:P1376 ?z . ?z rdf:type ontology:Q1307214 }
Milan
action filter_type
action find
entity Milan
relation capital of
type form of government
['Milan', 'capital of', {'concept': 'form of government'}]
SELECT DISTINCT ?z WHERE { resource:Milan property:capital_of ?z . ?z rdf:type ontology:form_of_government }
[]
form of government
Q42834
SYSTEM
Western Roman Empire
Q42834
(Q490,P1376,c(Q1307214))
action filter_type
action find
entity Q490
relation P1376
type Q1307214
[ANSWER] has that administrative territory as its capital
['Q490', 'P1376', {'concept': 'Q1307214'}]
SELECT DISTINCT ?z WHERE { resource:Q490 property:P1376 ?z . ?z rdf:type ontology:Q1307214 }
Western Roman Empire
Western Roman Empire has that administrative territory as its capital
Western Roman Empire
action filter_type
action find
entity Milan
relation capital of
type form of government
['Milan', 'capital of', {'concept': 'form of government'}]
SELECT DISTINCT ?z WHERE { resource:Milan property:capital_of ?z . ?z rdf:type ontology:form_of_government }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1530
Q1307214
USER
And how about Baghdad?
(Q1530,P1376,c(Q1307214))
action filter_type
action find
entity Q1530
relation P1376
type Q1307214
['Q1530', 'P1376', {'concept': 'Q1307214'}]
SELECT DISTINCT ?l WHERE { resource:Q1530 property:P1376 ?l . ?l rdf:type ontology:Q1307214 }
Baghdad
action filter_type
action find
entity Baghdad
relation capital of
type form of government
['Baghdad', 'capital of', {'concept': 'form of government'}]
SELECT DISTINCT ?l WHERE { resource:Baghdad property:capital_of ?l . ?l rdf:type ontology:form_of_government }
[]
form of government
Q3108185
SYSTEM
Ba'athist Iraq
Q3108185
(Q1530,P1376,c(Q1307214))
action filter_type
action find
entity Q1530
relation P1376
type Q1307214
[ANSWER]
['Q1530', 'P1376', {'concept': 'Q1307214'}]
SELECT DISTINCT ?l WHERE { resource:Q1530 property:P1376 ?l . ?l rdf:type ontology:Q1307214 }
Ba'athist Iraq
Ba'athist Iraq
action filter_type
action find
entity Baghdad
relation capital of
type form of government
['Baghdad', 'capital of', {'concept': 'form of government'}]
SELECT DISTINCT ?l WHERE { resource:Baghdad property:capital_of ?l . ?l rdf:type ontology:form_of_government }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1530
P190
Q19833031 Q515
USER
How many emirates of the United Arab Emirates or cities are the sister cities of Baghdad ?
(Q1530,P190,c(Q19833031)) (Q1530,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q1530
relation P190
type Q19833031
action filter_type
action find
entity Q1530
relation P190
type Q515
['Q1530', 'P190', {'concept': 'Q19833031'}] ['Q1530', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { resource:Q1530 property:P190 ?a . ?a rdf:type ontology:Q19833031 } UNION { resource:Q1530 property:P190 ?a . ?a rdf:type ontology:Q515 } }
Baghdad
action count
action union
action filter_type
action find
entity Baghdad
relation sister city
type emirate of the United Arab Emirates
action filter_type
action find
entity Baghdad
relation sister city
type city
['Baghdad', 'sister city', {'concept': 'emirate of the United Arab Emirates'}] ['Baghdad', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { resource:Baghdad property:sister_city ?a . ?a rdf:type ontology:emirate_of_the_United_Arab_Emirates } UNION { resource:Baghdad property:sister_city ?a . ?a rdf:type ontology:city } }
[]
emirate of the United Arab Emirates city
SYSTEM
2
Q3616 Q613
(Q1530,P190,c(Q19833031)) (Q1530,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q1530
relation P190
type Q19833031
action filter_type
action find
entity Q1530
relation P190
type Q515
[ANSWER]
['Q1530', 'P190', {'concept': 'Q19833031'}] ['Q1530', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { resource:Q1530 property:P190 ?a . ?a rdf:type ontology:Q19833031 } UNION { resource:Q1530 property:P190 ?a . ?a rdf:type ontology:Q515 } }
Tehran Emirate of Dubai
2
action count
action union
action filter_type
action find
entity Baghdad
relation sister city
type emirate of the United Arab Emirates
action filter_type
action find
entity Baghdad
relation sister city
type city
['Baghdad', 'sister city', {'concept': 'emirate of the United Arab Emirates'}] ['Baghdad', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { resource:Baghdad property:sister_city ?a . ?a rdf:type ontology:emirate_of_the_United_Arab_Emirates } UNION { resource:Baghdad property:sister_city ?a . ?a rdf:type ontology:city } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q647 Q490
P190
Q56061
USER
Which administrative territories are twin towns of Milan or Rennes ?
OR((Q490,P190,c(Q56061)), (Q647,P190,c(Q56061)))
action filter_type
action union
action find
entity Q490
relation P190
action find
entity Q647
relation P190
type Q56061
{'OR': [['Q490', 'P190', {'concept': 'Q56061'}], ['Q647', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { ?p property:P190 ?t . VALUES ( ?p ) { ( resource:Q490 ) ( resource:Q647 ) } } . ?t rdf:type ontology:Q56061 }
Rennes Milan
action filter_type
action union
action find
entity Milan
relation sister city
action find
entity Rennes
relation sister city
type administrative territorial entity
{'OR': [['Milan', 'sister city', {'concept': 'administrative territorial entity'}], ['Rennes', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { ?p property:sister_city ?t . VALUES ( ?p ) { ( resource:Milan ) ( resource:Rennes ) } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3805 Q546 Q472 Q49218 Q34820 Q340 Q5776 Q35493 Q118958 Q3130
SYSTEM
Some of them are Amman, Trieste, Sofia, Rochester, Santo Domingo, Montreal, Bethlehem, Almaty, Leuven, Sydney
Q118958 Q8686 Q3141 Q472 Q3130 Q35493 Q340 Q36647 Q49218 Q34820 Q193289 Q1297 Q2634 Q546 Q3718 Q134672 Q33935 Q185289 Q174 Q172 Q956 Q121157 Q3805 Q5776
OR((Q490,P190,c(Q56061)), (Q647,P190,c(Q56061)))
action filter_type
action union
action find
entity Q490
relation P190
action find
entity Q647
relation P190
type Q56061
[ANSWERS] are twin towns of Milan or Rennes
{'OR': [['Q490', 'P190', {'concept': 'Q56061'}], ['Q647', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { ?p property:P190 ?t . VALUES ( ?p ) { ( resource:Q490 ) ( resource:Q647 ) } } . ?t rdf:type ontology:Q56061 }
Leuven Shanghai Melbourne Sofia Sydney Almaty Montreal Cork Rochester Santo Domingo Iquitos Chicago Naples Trieste Dakar Exeter Tel Aviv Pernik São Paulo Toronto Beijing Mashhad Amman Bethlehem
Amman, Trieste, Sofia, Rochester, Santo Domingo, Montreal, Bethlehem, Almaty, Leuven and Sydney are twin towns of Milan or Rennes
Amman Trieste Sofia Rochester Santo Domingo Montreal Bethlehem Almaty Leuven Sydney
action filter_type
action union
action find
entity Milan
relation sister city
action find
entity Rennes
relation sister city
type administrative territorial entity
{'OR': [['Milan', 'sister city', {'concept': 'administrative territorial entity'}], ['Rennes', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { ?p property:sister_city ?t . VALUES ( ?p ) { ( resource:Milan ) ( resource:Rennes ) } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4001 Q42834
P190 P36
Q56061
USER
Which administrative territories are called the capital of Western Roman Empire or are twin cities of Garbsen ?
OR((Q42834,P36,c(Q56061)), (Q4001,P190,c(Q56061)))
action filter_type
action union
action find
entity Q42834
relation P36
action find
entity Q4001
relation P190
type Q56061
{'OR': [['Q42834', 'P36', {'concept': 'Q56061'}], ['Q4001', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q42834 property:P36 ?s } UNION { resource:Q4001 property:P190 ?s } } . ?s rdf:type ontology:Q56061 }
Garbsen Western Roman Empire
action filter_type
action union
action find
entity Western Roman Empire
relation capital
action find
entity Garbsen
relation sister city
type administrative territorial entity
{'OR': [['Western Roman Empire', 'capital', {'concept': 'administrative territorial entity'}], ['Garbsen', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Western_Roman_Empire property:capital ?s } UNION { resource:Garbsen property:sister_city ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q16020 Q836960 Q13364 Q52902 Q729978 Q980067
SYSTEM
Schönebeck, Rødding, Ravenna, Września, Mediolanum, Farmers Branch
Q16020 Q836960 Q13364 Q52902 Q729978 Q980067
OR((Q42834,P36,c(Q56061)), (Q4001,P190,c(Q56061)))
action filter_type
action union
action find
entity Q42834
relation P36
action find
entity Q4001
relation P190
type Q56061
[ANSWERS] are called the capital of Western Roman Empire or are twin cities of Garbsen
{'OR': [['Q42834', 'P36', {'concept': 'Q56061'}], ['Q4001', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q42834 property:P36 ?s } UNION { resource:Q4001 property:P190 ?s } } . ?s rdf:type ontology:Q56061 }
Schönebeck Rødding Ravenna Września Mediolanum Farmers Branch
Schönebeck, Rødding, Ravenna, Września, Mediolanum and Farmers Branch are called the capital of Western Roman Empire or are twin cities of Garbsen
Schönebeck Rødding Ravenna Września Mediolanum Farmers Branch
action filter_type
action union
action find
entity Western Roman Empire
relation capital
action find
entity Garbsen
relation sister city
type administrative territorial entity
{'OR': [['Western Roman Empire', 'capital', {'concept': 'administrative territorial entity'}], ['Garbsen', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Western_Roman_Empire property:capital ?s } UNION { resource:Garbsen property:sister_city ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]