Simple Question (Direct)
Simple Question
Q17626804
P19
Q56061
USER
Where was George Leslie born ?
(Q17626804,P19,c(Q56061))
action filter_type
action find
entity Q17626804
relation P19
type Q56061
['Q17626804', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q17626804 property:P19 ?z . ?z rdf:type ontology:Q56061 }
George Leslie
action filter_type
action find
entity George Leslie
relation place of birth
type administrative territorial entity
['George Leslie', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:George_Leslie property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q211907
SYSTEM
Slough
Q211907
(Q17626804,P19,c(Q56061))
action filter_type
action find
entity Q17626804
relation P19
type Q56061
George Leslie was born in [ANSWER]
['Q17626804', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q17626804 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Slough
George Leslie was born in Slough
Slough
action filter_type
action find
entity George Leslie
relation place of birth
type administrative territorial entity
['George Leslie', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:George_Leslie property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17626804
P21
Q290
USER
What is the sex of George Leslie ?
(Q17626804,P21,c(Q290))
action filter_type
action find
entity Q17626804
relation P21
type Q290
['Q17626804', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q17626804 property:P21 ?k . ?k rdf:type ontology:Q290 }
George Leslie
action filter_type
action find
entity George Leslie
relation gender
type sex
['George Leslie', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:George_Leslie property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q17626804,P21,c(Q290))
action filter_type
action find
entity Q17626804
relation P21
type Q290
The sex of George Leslie is a [ANSWER]
['Q17626804', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q17626804 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
The sex of George Leslie is a male
male
action filter_type
action find
entity George Leslie
relation gender
type sex
['George Leslie', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:George_Leslie property:gender ?k . ?k rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q211907
P190
Q515 Q20667921
USER
How many cities or french administrative divisions are twin cities of Slough ?
(Q211907,P190,c(Q515)) (Q211907,P190,c(Q20667921))
action count
action union
action filter_type
action find
entity Q211907
relation P190
type Q515
action filter_type
action find
entity Q211907
relation P190
type Q20667921
['Q211907', 'P190', {'concept': 'Q515'}] ['Q211907', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { VALUES ( ?f ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?d rdf:type ?f }
Slough
action count
action union
action filter_type
action find
entity Slough
relation sister city
type city
action filter_type
action find
entity Slough
relation sister city
type type of french administrative division
['Slough', 'sister city', {'concept': 'city'}] ['Slough', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { VALUES ( ?f ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?d rdf:type ?f }
[]
city type of french administrative division
SYSTEM
2
Q1773 Q193370
(Q211907,P190,c(Q515)) (Q211907,P190,c(Q20667921))
action count
action union
action filter_type
action find
entity Q211907
relation P190
type Q515
action filter_type
action find
entity Q211907
relation P190
type Q20667921
[ANSWER]
['Q211907', 'P190', {'concept': 'Q515'}] ['Q211907', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { VALUES ( ?f ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?d rdf:type ?f }
Riga Montreuil
2
action count
action union
action filter_type
action find
entity Slough
relation sister city
type city
action filter_type
action find
entity Slough
relation sister city
type type of french administrative division
['Slough', 'sister city', {'concept': 'city'}] ['Slough', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { VALUES ( ?f ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?d rdf:type ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q211907
P138
Q7725634
USER
Which literary work has that administrative territory as its toponym ?
action filter_type
action find_reverse
entity Q211907
relation P138
type Q7725634
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q7725634 . ?x property:P138 resource:Q211907 }
Slough
action filter_type
action find_reverse
entity Slough
relation named after
type literary work
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:literary_work . ?x property:named_after resource:Slough }
[]
literary work
Q7541463
SYSTEM
Slough
Q7541463
action filter_type
action find_reverse
entity Q211907
relation P138
type Q7725634
[ANSWER] has that administrative territory as its toponym
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q7725634 . ?x property:P138 resource:Q211907 }
Slough
Slough has that administrative territory as its toponym
Slough
action filter_type
action find_reverse
entity Slough
relation named after
type literary work
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:literary_work . ?x property:named_after resource:Slough }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4365965 Q7541463
P27 P17
Q15617994
USER
Which administrative territories are Slough present in or do Aleksandr Plyushchev belong to ?
OR((Q7541463,P17,c(Q15617994)), (Q4365965,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7541463
relation P17
action find
entity Q4365965
relation P27
type Q15617994
{'OR': [['Q7541463', 'P17', {'concept': 'Q15617994'}], ['Q4365965', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q7541463 property:P17 ?x } UNION { resource:Q4365965 property:P27 ?x } } }
Aleksandr Plyushchev Slough
action filter_type
action union
action find
entity Slough
relation country
action find
entity Aleksandr Plyushchev
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Slough', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Aleksandr Plyushchev', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Slough property:country ?x } UNION { resource:Aleksandr_Plyushchev property:country_of_citizenship ?x } } }
[]
designation for an administrative territorial entity
Q159 Q145
SYSTEM
Russia, United Kingdom
Q159 Q145
OR((Q7541463,P17,c(Q15617994)), (Q4365965,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7541463
relation P17
action find
entity Q4365965
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q7541463', 'P17', {'concept': 'Q15617994'}], ['Q4365965', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q7541463 property:P17 ?x } UNION { resource:Q4365965 property:P27 ?x } } }
Russia United Kingdom
Which administrative territories are Slough present in or do Aleksandr Plyushchev belong to
Russia United Kingdom
action filter_type
action union
action find
entity Slough
relation country
action find
entity Aleksandr Plyushchev
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Slough', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Aleksandr Plyushchev', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Slough property:country ?x } UNION { resource:Aleksandr_Plyushchev property:country_of_citizenship ?x } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7790277 Q17626804
P27
Q15617994
USER
Which administrative territories are George Leslie or Thomas H. D. Mahoney a civilian of ?
OR((Q17626804,P27,c(Q15617994)), (Q7790277,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q17626804
relation P27
action find
entity Q7790277
relation P27
type Q15617994
{'OR': [['Q17626804', 'P27', {'concept': 'Q15617994'}], ['Q7790277', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q17626804 property:P27 ?j } UNION { resource:Q7790277 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
Thomas H. D. Mahoney George Leslie
action filter_type
action union
action find
entity George Leslie
relation country of citizenship
action find
entity Thomas H. D. Mahoney
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['George Leslie', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Thomas H. D. Mahoney', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:George_Leslie property:country_of_citizenship ?j } UNION { resource:Thomas_H._D._Mahoney property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q145
SYSTEM
United States of America, United Kingdom
Q30 Q145
OR((Q17626804,P27,c(Q15617994)), (Q7790277,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q17626804
relation P27
action find
entity Q7790277
relation P27
type Q15617994
George Leslie or Thomas H. D. Mahoney a civilian of are the [ANSWERS]
{'OR': [['Q17626804', 'P27', {'concept': 'Q15617994'}], ['Q7790277', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q17626804 property:P27 ?j } UNION { resource:Q7790277 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
United States of America United Kingdom
George Leslie or Thomas H. D. Mahoney a civilian of are the United States of America and United Kingdom
United States of America United Kingdom
action filter_type
action union
action find
entity George Leslie
relation country of citizenship
action find
entity Thomas H. D. Mahoney
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['George Leslie', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Thomas H. D. Mahoney', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:George_Leslie property:country_of_citizenship ?j } UNION { resource:Thomas_H._D._Mahoney property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7790277
P69
Q163740
USER
What are the nonprofit organizations where Thomas H. D. Mahoney were educated ?
(Q30,P69,c(Q163740)) (Q145,P69,c(Q163740))
action filter_type
action find
entity Q7790277
relation P69
type Q163740
['Q30', 'P69', {'concept': 'Q163740'}] ['Q145', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?z WHERE { resource:Q7790277 property:P69 ?z . ?z rdf:type ontology:Q163740 }
Thomas H. D. Mahoney
action filter_type
action find
entity Thomas H. D. Mahoney
relation educated at
type nonprofit organization
['United States of America', 'educated at', {'concept': 'nonprofit organization'}] ['United Kingdom', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?z WHERE { resource:Thomas_H._D._Mahoney property:educated_at ?z . ?z rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q432637 Q49118 Q13371
SYSTEM
George Washington University, Boston College, Harvard University
Q432637 Q49118 Q13371
(Q30,P69,c(Q163740)) (Q145,P69,c(Q163740))
action filter_type
action find
entity Q7790277
relation P69
type Q163740
The nonprofit organizations Thomas H. D. Mahoney were educated are at [ANSWERS]
['Q30', 'P69', {'concept': 'Q163740'}] ['Q145', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?z WHERE { resource:Q7790277 property:P69 ?z . ?z rdf:type ontology:Q163740 }
George Washington University Boston College Harvard University
The nonprofit organizations Thomas H. D. Mahoney were educated are at George Washington University, Boston College and Harvard University
George Washington University Boston College Harvard University
action filter_type
action find
entity Thomas H. D. Mahoney
relation educated at
type nonprofit organization
['United States of America', 'educated at', {'concept': 'nonprofit organization'}] ['United Kingdom', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?z WHERE { resource:Thomas_H._D._Mahoney property:educated_at ?z . ?z rdf:type ontology:nonprofit_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q13371 Q262386
P664
Q15275719
USER
How many recurring events were organized by Harvard University or ORF ?
(c(Q15275719),P664,Q13371) (c(Q15275719),P664,Q262386)
action count
action union
action filter_type
action find_reverse
entity Q13371
relation P664
type Q15275719
action filter_type
action find_reverse
entity Q262386
relation P664
type Q15275719
[{'concept': 'Q15275719'}, 'P664', 'Q13371'] [{'concept': 'Q15275719'}, 'P664', 'Q262386']
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { ?v property:P664 ?k . VALUES ( ?k ) { ( resource:Q13371 ) ( resource:Q262386 ) } }
Harvard University ORF
action count
action union
action filter_type
action find_reverse
entity Harvard University
relation organizer
type recurring event
action filter_type
action find_reverse
entity ORF
relation organizer
type recurring event
[{'concept': 'recurring event'}, 'organizer', 'Harvard University'] [{'concept': 'recurring event'}, 'organizer', 'ORF']
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { ?v property:organizer ?k . VALUES ( ?k ) { ( resource:Harvard_University ) ( resource:ORF ) } }
[]
recurring event
SYSTEM
2
Q15215081 Q205192
(c(Q15275719),P664,Q13371) (c(Q15275719),P664,Q262386)
action count
action union
action filter_type
action find_reverse
entity Q13371
relation P664
type Q15275719
action filter_type
action find_reverse
entity Q262386
relation P664
type Q15275719
[ANSWER]
[{'concept': 'Q15275719'}, 'P664', 'Q13371'] [{'concept': 'Q15275719'}, 'P664', 'Q262386']
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { ?v property:P664 ?k . VALUES ( ?k ) { ( resource:Q13371 ) ( resource:Q262386 ) } }
Eurovision Song Contest 2015 Eurovision Song Contest 1967
2
action count
action union
action filter_type
action find_reverse
entity Harvard University
relation organizer
type recurring event
action filter_type
action find_reverse
entity ORF
relation organizer
type recurring event
[{'concept': 'recurring event'}, 'organizer', 'Harvard University'] [{'concept': 'recurring event'}, 'organizer', 'ORF']
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { ?v property:organizer ?k . VALUES ( ?k ) { ( resource:Harvard_University ) ( resource:ORF ) } }
[]