Simple Question (Direct)
Simple Question
Q5091957
P119
Q43229
USER
Where was John Doyle buried ?
(Q5091957,P119,c(Q43229))
action filter_type
action find
entity Q5091957
relation P119
type Q43229
['Q5091957', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?h WHERE { resource:Q5091957 property:P119 ?h . ?h rdf:type ontology:Q43229 }
John Doyle
action filter_type
action find
entity John Doyle
relation place of burial
type organization
['John Doyle', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?h WHERE { resource:John_Doyle property:place_of_burial ?h . ?h rdf:type ontology:organization }
[]
organization
Q1290155
SYSTEM
West Norwood Cemetery
Q1290155
(Q5091957,P119,c(Q43229))
action filter_type
action find
entity Q5091957
relation P119
type Q43229
John Doyle was buried in [ANSWER]
['Q5091957', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?h WHERE { resource:Q5091957 property:P119 ?h . ?h rdf:type ontology:Q43229 }
West Norwood Cemetery
John Doyle was buried in West Norwood Cemetery
West Norwood Cemetery
action filter_type
action find
entity John Doyle
relation place of burial
type organization
['John Doyle', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?h WHERE { resource:John_Doyle property:place_of_burial ?h . ?h rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1290155
P1435
Q41176
USER
Which buildings give the heritage status of that organization ?
(Q1290155,P1435,c(Q41176))
action filter_type
action find
entity Q1290155
relation P1435
type Q41176
['Q1290155', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?l WHERE { resource:Q1290155 property:P1435 ?l . ?l rdf:type ontology:Q41176 }
West Norwood Cemetery
action filter_type
action find
entity West Norwood Cemetery
relation heritage status
type building
['West Norwood Cemetery', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?l WHERE { resource:West_Norwood_Cemetery property:heritage_status ?l . ?l rdf:type ontology:building }
[]
building
Q15700834 Q15700831
SYSTEM
Grade II listed building, Grade II* listed building
Q15700834 Q15700831
(Q1290155,P1435,c(Q41176))
action filter_type
action find
entity Q1290155
relation P1435
type Q41176
[ANSWERS] give the heritage status of that organization
['Q1290155', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?l WHERE { resource:Q1290155 property:P1435 ?l . ?l rdf:type ontology:Q41176 }
Grade II listed building Grade II* listed building
Grade II listed building and Grade II* listed building give the heritage status of that organization
Grade II listed building Grade II* listed building
action filter_type
action find
entity West Norwood Cemetery
relation heritage status
type building
['West Norwood Cemetery', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?l WHERE { resource:West_Norwood_Cemetery property:heritage_status ?l . ?l rdf:type ontology:building }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15700831
P17
Q15617994
USER
Which administrative territory is that building present in ?
(Q15700831,P17,c(Q15617994))
action filter_type
action find
entity Q15700831
relation P17
type Q15617994
['Q15700831', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . resource:Q15700831 property:P17 ?y }
Grade II* listed building
action filter_type
action find
entity Grade II* listed building
relation country
type designation for an administrative territorial entity
['Grade II* listed building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Grade_II*_listed_building property:country ?y }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q15700831
SYSTEM
Did you mean Grade II* listed building ?
Q15700834 Q15700831
(Q15700834,P17,c(Q15617994)) (Q15700831,P17,c(Q15617994))
[ANSWER]
['Q15700834', 'P17', {'concept': 'Q15617994'}] ['Q15700831', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . resource:Q15700831 property:P17 ?y }
Grade II listed building Grade II* listed building
Did you mean Grade II* listed building ?
Grade II* listed building
['Grade II listed building', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Grade II* listed building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Grade_II*_listed_building property:country ?y }
[]
Simple Question (Coreferenced)
USER
Yes
(Q15700831,P17,c(Q15617994))
['Q15700831', 'P17', {'concept': 'Q15617994'}]
['Grade II* listed building', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q145
SYSTEM
United Kingdom
Q145
(Q15700831,P17,c(Q15617994))
action filter_type
action find
entity Q15700831
relation P17
type Q15617994
That building is the [ANSWER]
['Q15700831', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . resource:Q15700831 property:P17 ?y }
United Kingdom
That building is the United Kingdom
United Kingdom
action filter_type
action find
entity Grade II* listed building
relation country
type designation for an administrative territorial entity
['Grade II* listed building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Grade_II*_listed_building property:country ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P85
Q7725634
USER
Which is the national anthem of that administrative territory ?
(Q145,P85,c(Q7725634))
action filter_type
action find
entity Q145
relation P85
type Q7725634
['Q145', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?a WHERE { resource:Q145 property:P85 ?a . ?a rdf:type ontology:Q7725634 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation anthem
type literary work
['United Kingdom', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?a WHERE { resource:United_Kingdom property:anthem ?a . ?a rdf:type ontology:literary_work }
[]
literary work
Q40807
SYSTEM
God Save the Queen
Q40807
(Q145,P85,c(Q7725634))
action filter_type
action find
entity Q145
relation P85
type Q7725634
The national anthem of that administrative territory is the [ANSWER]
['Q145', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?a WHERE { resource:Q145 property:P85 ?a . ?a rdf:type ontology:Q7725634 }
God Save the Queen
The national anthem of that administrative territory is the God Save the Queen
God Save the Queen
action filter_type
action find
entity United Kingdom
relation anthem
type literary work
['United Kingdom', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?a WHERE { resource:United_Kingdom property:anthem ?a . ?a rdf:type ontology:literary_work }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q168811
Q7725634
USER
And how about Kazakh Soviet Socialist Republic?
(Q168811,P85,c(Q7725634))
action filter_type
action find
entity Q168811
relation P85
type Q7725634
['Q168811', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7725634 . resource:Q168811 property:P85 ?p }
Kazakh Soviet Socialist Republic
action filter_type
action find
entity Kazakh Soviet Socialist Republic
relation anthem
type literary work
['Kazakh Soviet Socialist Republic', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:literary_work . resource:Kazakh_Soviet_Socialist_Republic property:anthem ?p }
[]
literary work
Q748155
SYSTEM
Anthem of the Kazakh Soviet Socialist Republic
Q748155
(Q168811,P85,c(Q7725634))
action filter_type
action find
entity Q168811
relation P85
type Q7725634
[ANSWER]
['Q168811', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7725634 . resource:Q168811 property:P85 ?p }
Anthem of the Kazakh Soviet Socialist Republic
Anthem of the Kazakh Soviet Socialist Republic
action filter_type
action find
entity Kazakh Soviet Socialist Republic
relation anthem
type literary work
['Kazakh Soviet Socialist Republic', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:literary_work . resource:Kazakh_Soviet_Socialist_Republic property:anthem ?p }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q36206
P407
Q34770 Q7725634
USER
Which languages are approximately the same number of literary works composed in as Lak ?
(c(Q7725634),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q36206
relation P407
type Q34770
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?j ) WHERE { ?q property:P407 ?m . ?m rdf:type ontology:Q34770 . ?q rdf:type ontology:Q7725634 } GROUP BY ?m } . FILTER ( ?j = ?f ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q36206 property:P407 ?l . ?l rdf:type ontology:Q34770 } } }
Lak
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Lak
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?j ) WHERE { ?q property:language_of_work_or_name ?m . ?m rdf:type ontology:language . ?q rdf:type ontology:literary_work } GROUP BY ?m } . FILTER ( ?j = ?f ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Lak property:language_of_work_or_name ?l . ?l rdf:type ontology:language } } }
[]
language literary work
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q7725634),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q36206
relation P407
type Q34770
[ANSWERS] are approximately the same number of literary works composed in as Lak
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?j ) WHERE { ?q property:P407 ?m . ?m rdf:type ontology:Q34770 . ?q rdf:type ontology:Q7725634 } GROUP BY ?m } . FILTER ( ?j = ?f ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q36206 property:P407 ?l . ?l rdf:type ontology:Q34770 } } }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are approximately the same number of literary works composed in as Lak
Old Egyptian Old Church Slavonic Etruscan
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Lak
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?j ) WHERE { ?q property:language_of_work_or_name ?m . ?m rdf:type ontology:language . ?q rdf:type ontology:literary_work } GROUP BY ?m } . FILTER ( ?j = ?f ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Lak property:language_of_work_or_name ?l . ?l rdf:type ontology:language } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q447117
P407
Q34770 Q7725634
USER
And how about Old Egyptian?
(c(Q7725634),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q447117
relation P407
type Q34770
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?r ) WHERE { ?z property:P407 ?x . ?x rdf:type ontology:Q34770 . ?z rdf:type ontology:Q7725634 } GROUP BY ?x } . FILTER ( ?r = ?l ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { resource:Q447117 property:P407 ?u . ?u rdf:type ontology:Q34770 } } }
Old Egyptian
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Old Egyptian
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?r ) WHERE { ?z property:language_of_work_or_name ?x . ?x rdf:type ontology:language . ?z rdf:type ontology:literary_work } GROUP BY ?x } . FILTER ( ?r = ?l ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { resource:Old_Egyptian property:language_of_work_or_name ?u . ?u rdf:type ontology:language } } }
[]
language literary work
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q7725634),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q447117
relation P407
type Q34770
[ANSWERS]
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?r ) WHERE { ?z property:P407 ?x . ?x rdf:type ontology:Q34770 . ?z rdf:type ontology:Q7725634 } GROUP BY ?x } . FILTER ( ?r = ?l ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { resource:Q447117 property:P407 ?u . ?u rdf:type ontology:Q34770 } } }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian Old Church Slavonic Etruscan
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Old Egyptian
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?r ) WHERE { ?z property:language_of_work_or_name ?x . ?x rdf:type ontology:language . ?z rdf:type ontology:literary_work } GROUP BY ?x } . FILTER ( ?r = ?l ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { resource:Old_Egyptian property:language_of_work_or_name ?u . ?u rdf:type ontology:language } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P193
Q502895 Q43229 Q41176
USER
How many buildings have approximately 2 people or organizations as their main contractor ?
(c(Q41176),P193,c(Q502895)|c(Q43229))
action count
action approx
action union
action find_tuple_counts
relation P193
type Q41176
type Q502895
action find_tuple_counts
relation P193
type Q41176
type Q43229
value 2
[{'concept': 'Q41176'}, 'P193', [{'concept': 'Q502895'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?m ) WHERE { VALUES ( ?o ) { ( ontology:Q502895 ) ( ontology:Q43229 ) } . ?y rdf:type ?o } GROUP BY ?h } . FILTER ( ?m = 2 ) }
action count
action approx
action union
action find_tuple_counts
relation main building contractor
type building
type common name
action find_tuple_counts
relation main building contractor
type building
type organization
value 2
[{'concept': 'building'}, 'main building contractor', [{'concept': 'common name'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?m ) WHERE { VALUES ( ?o ) { ( ontology:common_name ) ( ontology:organization ) } . ?y rdf:type ?o } GROUP BY ?h } . FILTER ( ?m = 2 ) }
[]
common name organization building
SYSTEM
4
Q12495 Q11329479 Q3482309 Q21019215
(c(Q41176),P193,c(Q502895)|c(Q43229))
action count
action approx
action union
action find_tuple_counts
relation P193
type Q41176
type Q502895
action find_tuple_counts
relation P193
type Q41176
type Q43229
value 2
[ANSWER]
[{'concept': 'Q41176'}, 'P193', [{'concept': 'Q502895'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?m ) WHERE { VALUES ( ?o ) { ( ontology:Q502895 ) ( ontology:Q43229 ) } . ?y rdf:type ?o } GROUP BY ?h } . FILTER ( ?m = 2 ) }
Burj Khalifa Palaceside Building Shiodome Media Tower Tokyo Sankei Building
4
action count
action approx
action union
action find_tuple_counts
relation main building contractor
type building
type common name
action find_tuple_counts
relation main building contractor
type building
type organization
value 2
[{'concept': 'building'}, 'main building contractor', [{'concept': 'common name'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?m ) WHERE { VALUES ( ?o ) { ( ontology:common_name ) ( ontology:organization ) } . ?y rdf:type ?o } GROUP BY ?h } . FILTER ( ?m = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P421
Q317623
USER
What timezone is United Kingdom located in ?
(Q145,P421,c(Q317623))
action filter_type
action find
entity Q145
relation P421
type Q317623
['Q145', 'P421', {'concept': 'Q317623'}]
SELECT DISTINCT ?p WHERE { resource:Q145 property:P421 ?p . ?p rdf:type ontology:Q317623 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation located in time zone
type technical standard
['United Kingdom', 'located in time zone', {'concept': 'technical standard'}]
SELECT DISTINCT ?p WHERE { resource:United_Kingdom property:located_in_time_zone ?p . ?p rdf:type ontology:technical_standard }
[]
technical standard
Q30192
SYSTEM
Greenwich Mean Time
Q30192
(Q145,P421,c(Q317623))
action filter_type
action find
entity Q145
relation P421
type Q317623
United Kingdom is located in [ANSWER]
['Q145', 'P421', {'concept': 'Q317623'}]
SELECT DISTINCT ?p WHERE { resource:Q145 property:P421 ?p . ?p rdf:type ontology:Q317623 }
Greenwich Mean Time
United Kingdom is located in Greenwich Mean Time
Greenwich Mean Time
action filter_type
action find
entity United Kingdom
relation located in time zone
type technical standard
['United Kingdom', 'located in time zone', {'concept': 'technical standard'}]
SELECT DISTINCT ?p WHERE { resource:United_Kingdom property:located_in_time_zone ?p . ?p rdf:type ontology:technical_standard }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P101
Q502895
USER
Which person has field of work as United Kingdom ?
(c(Q502895),P101,Q145)
action filter_type
action find_reverse
entity Q145
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q145']
SELECT DISTINCT ?f WHERE { ?f property:P101 resource:Q145 . ?f rdf:type ontology:Q502895 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'United Kingdom']
SELECT DISTINCT ?f WHERE { ?f property:field_of_work resource:United_Kingdom . ?f rdf:type ontology:common_name }
[]
common name
Q10771229
SYSTEM
Alexander Tomský
Q10771229
(c(Q502895),P101,Q145)
action filter_type
action find_reverse
entity Q145
relation P101
type Q502895
[ANSWER] has field of work as United Kingdom
[{'concept': 'Q502895'}, 'P101', 'Q145']
SELECT DISTINCT ?f WHERE { ?f property:P101 resource:Q145 . ?f rdf:type ontology:Q502895 }
Alexander Tomský
Alexander Tomský has field of work as United Kingdom
Alexander Tomský
action filter_type
action find_reverse
entity United Kingdom
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'United Kingdom']
SELECT DISTINCT ?f WHERE { ?f property:field_of_work resource:United_Kingdom . ?f rdf:type ontology:common_name }
[]