Simple Question (Direct)
Simple Question
Q18709250
P21
Q290
USER
What is the sex of Saleh Rateb ?
(Q18709250,P21,c(Q290))
action filter_type
action find
entity Q18709250
relation P21
type Q290
['Q18709250', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q18709250 property:P21 ?h . ?h rdf:type ontology:Q290 }
Saleh Rateb
action filter_type
action find
entity Saleh Rateb
relation gender
type sex
['Saleh Rateb', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Saleh_Rateb property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18709250,P21,c(Q290))
action filter_type
action find
entity Q18709250
relation P21
type Q290
The sex of Saleh Rateb is the [ANSWER]
['Q18709250', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q18709250 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
The sex of Saleh Rateb is the male
male
action filter_type
action find
entity Saleh Rateb
relation gender
type sex
['Saleh Rateb', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Saleh_Rateb property:gender ?h . ?h rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7816917 Q18709250
P19
Q56061
USER
Which administrative territories are the birthplace of Saleh Rateb or Tom Moody ?
OR((Q18709250,P19,c(Q56061)), (Q7816917,P19,c(Q56061)))
action filter_type
action union
action find
entity Q18709250
relation P19
action find
entity Q7816917
relation P19
type Q56061
{'OR': [['Q18709250', 'P19', {'concept': 'Q56061'}], ['Q7816917', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q18709250 property:P19 ?q } UNION { resource:Q7816917 property:P19 ?q } } . ?q rdf:type ontology:Q56061 }
Tom Moody Saleh Rateb
action filter_type
action union
action find
entity Saleh Rateb
relation place of birth
action find
entity Tom Moody
relation place of birth
type administrative territorial entity
{'OR': [['Saleh Rateb', 'place of birth', {'concept': 'administrative territorial entity'}], ['Tom Moody', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Saleh_Rateb property:place_of_birth ?q } UNION { resource:Tom_Moody property:place_of_birth ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3805 Q60
SYSTEM
Amman, New York City
Q3805 Q60
OR((Q18709250,P19,c(Q56061)), (Q7816917,P19,c(Q56061)))
action filter_type
action union
action find
entity Q18709250
relation P19
action find
entity Q7816917
relation P19
type Q56061
[ANSWERS] are the birthplace of Saleh Rateb or Tom Moody
{'OR': [['Q18709250', 'P19', {'concept': 'Q56061'}], ['Q7816917', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q18709250 property:P19 ?q } UNION { resource:Q7816917 property:P19 ?q } } . ?q rdf:type ontology:Q56061 }
Amman New York City
Amman and New York City are the birthplace of Saleh Rateb or Tom Moody
Amman New York City
action filter_type
action union
action find
entity Saleh Rateb
relation place of birth
action find
entity Tom Moody
relation place of birth
type administrative territorial entity
{'OR': [['Saleh Rateb', 'place of birth', {'concept': 'administrative territorial entity'}], ['Tom Moody', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Saleh_Rateb property:place_of_birth ?q } UNION { resource:Tom_Moody property:place_of_birth ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q60
P6
Q502895
USER
How many people are the head of government of New York City ?
(Q60,P6,c(Q502895))
action count
action filter_type
action find
entity Q60
relation P6
type Q502895
['Q60', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { resource:Q60 property:P6 ?l . ?l rdf:type ontology:Q502895 }
New York City
action count
action filter_type
action find
entity New York City
relation head of government
type common name
['New York City', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { resource:New_York_City property:head_of_government ?l . ?l rdf:type ontology:common_name }
[]
common name
SYSTEM
21
Q204135 Q467133 Q312502 Q2274772 Q3182321 Q441554 Q2156376 Q6287566 Q467122 Q939458 Q607 Q6233903 Q329910 Q212648 Q4121154 Q4911497 Q1701296 Q2544704 Q666931 Q439156 Q5536568
(Q60,P6,c(Q502895))
action count
action filter_type
action find
entity Q60
relation P6
type Q502895
[ANSWER]
['Q60', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { resource:Q60 property:P6 ?l . ?l rdf:type ontology:Q502895 }
Jimmy Walker David Dinkins Fiorello H. La Guardia Seth Low John Purroy Mitchel William O'Dwyer Robert Anderson Van Wyck Joseph V. McKee Ed Koch Vincent R. Impellitteri Michael Bloomberg John Francis Hylan Abraham Beame Rudy Giuliani Ardolph L. Kline Bill de Blasio John P. O'Brien William Jay Gaynor John Lindsay Robert F. Wagner George B. McClellan, Jr.
21
action count
action filter_type
action find
entity New York City
relation head of government
type common name
['New York City', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { resource:New_York_City property:head_of_government ?l . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1990929
Q502895
USER
And what about Peñacaballera?
(Q1990929,P6,c(Q502895))
action count
action filter_type
action find
entity Q1990929
relation P6
type Q502895
['Q1990929', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g rdf:type ontology:Q502895 . resource:Q1990929 property:P6 ?g }
Peñacaballera
action count
action filter_type
action find
entity Peñacaballera
relation head of government
type common name
['Peñacaballera', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g rdf:type ontology:common_name . resource:Peñacaballera property:head_of_government ?g }
[]
common name
SYSTEM
1
(Q1990929,P6,c(Q502895))
action count
action filter_type
action find
entity Q1990929
relation P6
type Q502895
[ANSWER]
['Q1990929', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g rdf:type ontology:Q502895 . resource:Q1990929 property:P6 ?g }
1
action count
action filter_type
action find
entity Peñacaballera
relation head of government
type common name
['Peñacaballera', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g rdf:type ontology:common_name . resource:Peñacaballera property:head_of_government ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q60
P17
Q15617994
USER
Which administrative territory is New York City present in ?
(Q60,P17,c(Q15617994))
action filter_type
action find
entity Q60
relation P17
type Q15617994
['Q60', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q60 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
New York City
action filter_type
action find
entity New York City
relation country
type designation for an administrative territorial entity
['New York City', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:New_York_City property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q60,P17,c(Q15617994))
action filter_type
action find
entity Q60
relation P17
type Q15617994
Which administrative territory is New York City present in
['Q60', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q60 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
United States of America
Which administrative territory is New York City present in
United States of America
action filter_type
action find
entity New York City
relation country
type designation for an administrative territorial entity
['New York City', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:New_York_City property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q322936
Q15617994
USER
And how about AMIA bombing?
(Q322936,P17,c(Q15617994))
action filter_type
action find
entity Q322936
relation P17
type Q15617994
['Q322936', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q322936 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
AMIA bombing
action filter_type
action find
entity AMIA bombing
relation country
type designation for an administrative territorial entity
['AMIA bombing', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:AMIA_bombing property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q414
SYSTEM
Argentina
Q414
(Q322936,P17,c(Q15617994))
action filter_type
action find
entity Q322936
relation P17
type Q15617994
[ANSWER]
['Q322936', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q322936 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Argentina
Argentina
action filter_type
action find
entity AMIA bombing
relation country
type designation for an administrative territorial entity
['AMIA bombing', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:AMIA_bombing property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with atleast 18 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 18
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?t ) WHERE { ?q property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?t >= 18 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 18
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?t ) WHERE { ?q property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?t >= 18 ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408 Q16
SYSTEM
Germany, Australia, Canada
Q183 Q408 Q16
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 18
[ANSWERS] have diplomatic associations with atleast 18 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?t ) WHERE { ?q property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?t >= 18 ) }
Germany Australia Canada
Germany, Australia and Canada have diplomatic associations with atleast 18 administrative territories
Germany Australia Canada
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 18
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?t ) WHERE { ?q property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?t >= 18 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q15617994 Q2342494 Q838948
USER
How many administrative territories are the narrative locations of approximately 111 collectables and works of art ?
(c(Q2342494)|c(Q838948),P840,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
value 111
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?s WHERE { VALUES ( ?q ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?l rdf:type ?q } GROUP BY ?s } . FILTER ( ?o = 111 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
value 111
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?s WHERE { VALUES ( ?q ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?l rdf:type ?q } GROUP BY ?s } . FILTER ( ?o = 111 ) }
[]
designation for an administrative territorial entity collectable work of art
SYSTEM
11
Q55 Q148 Q258 Q41 Q155 Q36 Q39 Q96 Q17 Q79 Q869
(c(Q2342494)|c(Q838948),P840,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
value 111
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?s WHERE { VALUES ( ?q ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?l rdf:type ?q } GROUP BY ?s } . FILTER ( ?o = 111 ) }
Netherlands People's Republic of China South Africa Greece Brazil Poland Switzerland Mexico Japan Egypt Thailand
11
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
value 111
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?s WHERE { VALUES ( ?q ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?l rdf:type ?q } GROUP BY ?s } . FILTER ( ?o = 111 ) }
[]