Simple Question (Direct)
Simple Question
Q8012692
P641
Q349
USER
What did William Hunter participate in ?
(Q8012692,P641,c(Q349))
action filter_type
action find
entity Q8012692
relation P641
type Q349
['Q8012692', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q8012692 property:P641 ?v . ?v rdf:type ontology:Q349 }
William Hunter
action filter_type
action find
entity William Hunter
relation sport
type sport
['William Hunter', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:William_Hunter property:sport ?v . ?v rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q8012692,P641,c(Q349))
action filter_type
action find
entity Q8012692
relation P641
type Q349
William Hunter participated in [ANSWER]
['Q8012692', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q8012692 property:P641 ?v . ?v rdf:type ontology:Q349 }
association football
William Hunter participated in association football
association football
action filter_type
action find
entity William Hunter
relation sport
type sport
['William Hunter', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:William_Hunter property:sport ?v . ?v rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P805
Q838948
USER
What was that sport dedicated to ?
(c(Q838948),P805,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P805
type Q838948
[{'concept': 'Q838948'}, 'P805', 'Q2736']
SELECT DISTINCT ?k WHERE { ?k property:P805 resource:Q2736 . ?k rdf:type ontology:Q838948 }
association football
action filter_type
action find_reverse
entity association football
relation subject of
type work of art
[{'concept': 'work of art'}, 'subject of', 'association football']
SELECT DISTINCT ?k WHERE { ?k property:subject_of resource:association_football . ?k rdf:type ontology:work_of_art }
[]
work of art
Q869862
SYSTEM
Goal!
Q869862
(c(Q838948),P805,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P805
type Q838948
[ANSWER] that sport was dedicated
[{'concept': 'Q838948'}, 'P805', 'Q2736']
SELECT DISTINCT ?k WHERE { ?k property:P805 resource:Q2736 . ?k rdf:type ontology:Q838948 }
Goal!
Goal! that sport was dedicated
Goal!
action filter_type
action find_reverse
entity association football
relation subject of
type work of art
[{'concept': 'work of art'}, 'subject of', 'association football']
SELECT DISTINCT ?k WHERE { ?k property:subject_of resource:association_football . ?k rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2736
P495
Q1496967
USER
Where did association football originate ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?d WHERE { resource:Q2736 property:P495 ?d . ?d rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:association_football property:country_of_origin ?d . ?d rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
Association football originated from [ANSWER]
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?d WHERE { resource:Q2736 property:P495 ?d . ?d rdf:type ontology:Q1496967 }
England
Association football originated from England
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:association_football property:country_of_origin ?d . ?d rdf:type ontology:territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21
P85
Q7725634
USER
What is the national anthem of that territory ?
(Q21,P85,c(Q7725634))
action filter_type
action find
entity Q21
relation P85
type Q7725634
['Q21', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?h WHERE { resource:Q21 property:P85 ?h . ?h rdf:type ontology:Q7725634 }
England
action filter_type
action find
entity England
relation anthem
type literary work
['England', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?h WHERE { resource:England property:anthem ?h . ?h rdf:type ontology:literary_work }
[]
literary work
Q40807
SYSTEM
God Save the Queen
Q40807
(Q21,P85,c(Q7725634))
action filter_type
action find
entity Q21
relation P85
type Q7725634
The national anthem of that territory is [ANSWER]
['Q21', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?h WHERE { resource:Q21 property:P85 ?h . ?h rdf:type ontology:Q7725634 }
God Save the Queen
The national anthem of that territory is God Save the Queen
God Save the Queen
action filter_type
action find
entity England
relation anthem
type literary work
['England', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?h WHERE { resource:England property:anthem ?h . ?h rdf:type ontology:literary_work }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1194087 Q21
P144 P85
Q7725634
USER
Which literary works are the anthems for England or are Covert One: The Hades Factor based on ?
OR((Q21,P85,c(Q7725634)), (Q1194087,P144,c(Q7725634)))
action filter_type
action union
action find
entity Q21
relation P85
action find
entity Q1194087
relation P144
type Q7725634
{'OR': [['Q21', 'P85', {'concept': 'Q7725634'}], ['Q1194087', 'P144', {'concept': 'Q7725634'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q21 property:P85 ?j } UNION { resource:Q1194087 property:P144 ?j } } . ?j rdf:type ontology:Q7725634 }
Covert One: The Hades Factor England
action filter_type
action union
action find
entity England
relation anthem
action find
entity Covert One: The Hades Factor
relation based on
type literary work
{'OR': [['England', 'anthem', {'concept': 'literary work'}], ['Covert One: The Hades Factor', 'based on', {'concept': 'literary work'}]]}
SELECT DISTINCT ?j WHERE { { { resource:England property:anthem ?j } UNION { resource:Covert_One:_The_Hades_Factor property:based_on ?j } } . ?j rdf:type ontology:literary_work }
[]
literary work
Q5179283 Q40807
SYSTEM
Covert-One series, God Save the Queen
Q5179283 Q40807
OR((Q21,P85,c(Q7725634)), (Q1194087,P144,c(Q7725634)))
action filter_type
action union
action find
entity Q21
relation P85
action find
entity Q1194087
relation P144
type Q7725634
[ANSWERS] are the anthems for England or are Covert One: The Hades Factor based on
{'OR': [['Q21', 'P85', {'concept': 'Q7725634'}], ['Q1194087', 'P144', {'concept': 'Q7725634'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q21 property:P85 ?j } UNION { resource:Q1194087 property:P144 ?j } } . ?j rdf:type ontology:Q7725634 }
Covert-One series God Save the Queen
Covert-One series and God Save the Queen are the anthems for England or are Covert One: The Hades Factor based on
Covert-One series God Save the Queen
action filter_type
action union
action find
entity England
relation anthem
action find
entity Covert One: The Hades Factor
relation based on
type literary work
{'OR': [['England', 'anthem', {'concept': 'literary work'}], ['Covert One: The Hades Factor', 'based on', {'concept': 'literary work'}]]}
SELECT DISTINCT ?j WHERE { { { resource:England property:anthem ?j } UNION { resource:Covert_One:_The_Hades_Factor property:based_on ?j } } . ?j rdf:type ontology:literary_work }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q384426
P1445
Q7725634 Q386724
USER
How many works represents a fictional universe described in lesser number of literary works than Pirates of the Caribbean ?
(c(Q386724),P1445,c(Q7725634))
action count
action less
action find_tuple_counts
relation P1445
type Q386724
type Q7725634
action count
action filter_type
action find
entity Q384426
relation P1445
type Q7725634
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q7725634'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Q384426 property:P1445 ?b . ?b rdf:type ontology:Q7725634 } } . FILTER ( ?n < ?a ) . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?n ) WHERE { ?k property:P1445 ?s . ?k rdf:type ontology:Q386724 . ?s rdf:type ontology:Q7725634 } GROUP BY ?k } }
Pirates of the Caribbean
action count
action less
action find_tuple_counts
relation fictional universe described in
type work
type literary work
action count
action filter_type
action find
entity Pirates of the Caribbean
relation fictional universe described in
type literary work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'literary work'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Pirates_of_the_Caribbean property:fictional_universe_described_in ?b . ?b rdf:type ontology:literary_work } } . FILTER ( ?n < ?a ) . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?n ) WHERE { ?k property:fictional_universe_described_in ?s . ?k rdf:type ontology:work . ?s rdf:type ontology:literary_work } GROUP BY ?k } }
[]
literary work work
SYSTEM
4
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q7725634))
action count
action less
action find_tuple_counts
relation P1445
type Q386724
type Q7725634
action count
action filter_type
action find
entity Q384426
relation P1445
type Q7725634
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q7725634'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Q384426 property:P1445 ?b . ?b rdf:type ontology:Q7725634 } } . FILTER ( ?n < ?a ) . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?n ) WHERE { ?k property:P1445 ?s . ?k rdf:type ontology:Q386724 . ?s rdf:type ontology:Q7725634 } GROUP BY ?k } }
Shrek Aladdin media franchise Stargate The Walking Dead
4
action count
action less
action find_tuple_counts
relation fictional universe described in
type work
type literary work
action count
action filter_type
action find
entity Pirates of the Caribbean
relation fictional universe described in
type literary work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'literary work'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Pirates_of_the_Caribbean property:fictional_universe_described_in ?b . ?b rdf:type ontology:literary_work } } . FILTER ( ?n < ?a ) . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?n ) WHERE { ?k property:fictional_universe_described_in ?s . ?k rdf:type ontology:work . ?s rdf:type ontology:literary_work } GROUP BY ?k } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1860
P407
Q34770 Q7725634
USER
How many languages are the languages of work for less number of literary works than English ?
(c(Q7725634),P407,c(Q34770))
action count
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find_reverse
entity Q1860
relation P407
type Q7725634
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:P407 ?y . ?e rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q34770 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b rdf:type ontology:Q7725634 . ?b property:P407 resource:Q1860 } } . FILTER ( ?f < ?w ) }
English
action count
action less
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find_reverse
entity English
relation language of work or name
type literary work
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:language_of_work_or_name ?y . ?e rdf:type ontology:literary_work . ?y rdf:type ontology:language } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b rdf:type ontology:literary_work . ?b property:language_of_work_or_name resource:English } } . FILTER ( ?f < ?w ) }
[]
language literary work
SYSTEM
28
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 count
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find_reverse
entity Q1860
relation P407
type Q7725634
[ANSWER]
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:P407 ?y . ?e rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q34770 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b rdf:type ontology:Q7725634 . ?b property:P407 resource:Q1860 } } . FILTER ( ?f < ?w ) }
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
28
action count
action less
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find_reverse
entity English
relation language of work or name
type literary work
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:language_of_work_or_name ?y . ?e rdf:type ontology:literary_work . ?y rdf:type ontology:language } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b rdf:type ontology:literary_work . ?b property:language_of_work_or_name resource:English } } . FILTER ( ?f < ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q9056
P407
Q34770 Q7725634
USER
And what about Czech?
(c(Q7725634),P407,c(Q34770))
action count
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find_reverse
entity Q9056
relation P407
type Q7725634
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:P407 ?g . ?g rdf:type ontology:Q34770 . ?f rdf:type ontology:Q7725634 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { ?k property:P407 resource:Q9056 . ?k rdf:type ontology:Q7725634 } } . FILTER ( ?o < ?v ) }
Czech
action count
action less
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find_reverse
entity Czech
relation language of work or name
type literary work
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:language_of_work_or_name ?g . ?g rdf:type ontology:language . ?f rdf:type ontology:literary_work } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { ?k property:language_of_work_or_name resource:Czech . ?k rdf:type ontology:literary_work } } . FILTER ( ?o < ?v ) }
[]
language literary work
SYSTEM
24
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q8752 Q37041 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q7725634),P407,c(Q34770))
action count
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find_reverse
entity Q9056
relation P407
type Q7725634
[ANSWER]
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:P407 ?g . ?g rdf:type ontology:Q34770 . ?f rdf:type ontology:Q7725634 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { ?k property:P407 resource:Q9056 . ?k rdf:type ontology:Q7725634 } } . FILTER ( ?o < ?v ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse Basque classical Chinese Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
24
action count
action less
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find_reverse
entity Czech
relation language of work or name
type literary work
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:language_of_work_or_name ?g . ?g rdf:type ontology:language . ?f rdf:type ontology:literary_work } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { ?k property:language_of_work_or_name resource:Czech . ?k rdf:type ontology:literary_work } } . FILTER ( ?o < ?v ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q18130932
P407
Q34770 Q7725634
USER
How many languages are the languages of work for more number of literary works than Traditional Chinese ?
(c(Q7725634),P407,c(Q34770))
action count
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q18130932
relation P407
type Q34770
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?w ) WHERE { ?f rdf:type ontology:Q34770 . ?x rdf:type ontology:Q7725634 . ?x property:P407 ?f } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { resource:Q18130932 property:P407 ?j . ?j rdf:type ontology:Q34770 } } . FILTER ( ?w > ?v ) }
Traditional Chinese
action count
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Traditional Chinese
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?w ) WHERE { ?f rdf:type ontology:language . ?x rdf:type ontology:literary_work . ?x property:language_of_work_or_name ?f } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { resource:Traditional_Chinese property:language_of_work_or_name ?j . ?j rdf:type ontology:language } } . FILTER ( ?w > ?v ) }
[]
language literary work
SYSTEM
7
Q1860 Q8785 Q1321 Q397 Q9056 Q37041 Q652
(c(Q7725634),P407,c(Q34770))
action count
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q18130932
relation P407
type Q34770
[ANSWER]
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?w ) WHERE { ?f rdf:type ontology:Q34770 . ?x rdf:type ontology:Q7725634 . ?x property:P407 ?f } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { resource:Q18130932 property:P407 ?j . ?j rdf:type ontology:Q34770 } } . FILTER ( ?w > ?v ) }
English Armenian Spanish Latin Czech classical Chinese Italian
7
action count
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Traditional Chinese
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?w ) WHERE { ?f rdf:type ontology:language . ?x rdf:type ontology:literary_work . ?x property:language_of_work_or_name ?f } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { resource:Traditional_Chinese property:language_of_work_or_name ?j . ?j rdf:type ontology:language } } . FILTER ( ?w > ?v ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q56061 Q44539
USER
How many people are the patron saint of approximately 55 administrative territories and temples ?
(c(Q56061)|c(Q44539),P417,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
value 55
[[{'concept': 'Q56061'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?p ) WHERE { { ?r property:P417 ?b . ?b rdf:type ontology:Q502895 . ?r rdf:type ontology:Q56061 } UNION { ?r property:P417 ?b . ?r rdf:type ontology:Q44539 . ?b rdf:type ontology:Q502895 } } GROUP BY ?b } . FILTER ( ?p = 55 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
value 55
[[{'concept': 'administrative territorial entity'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?p ) WHERE { { ?r property:patron_saint ?b . ?b rdf:type ontology:common_name . ?r rdf:type ontology:administrative_territorial_entity } UNION { ?r property:patron_saint ?b . ?r rdf:type ontology:temple . ?b rdf:type ontology:common_name } } GROUP BY ?b } . FILTER ( ?p = 55 ) }
[]
common name administrative territorial entity temple
SYSTEM
2
Q33923 Q9200
(c(Q56061)|c(Q44539),P417,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
value 55
[ANSWER]
[[{'concept': 'Q56061'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?p ) WHERE { { ?r property:P417 ?b . ?b rdf:type ontology:Q502895 . ?r rdf:type ontology:Q56061 } UNION { ?r property:P417 ?b . ?r rdf:type ontology:Q44539 . ?b rdf:type ontology:Q502895 } } GROUP BY ?b } . FILTER ( ?p = 55 ) }
Peter Paul
2
action count
action approx
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
value 55
[[{'concept': 'administrative territorial entity'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?p ) WHERE { { ?r property:patron_saint ?b . ?b rdf:type ontology:common_name . ?r rdf:type ontology:administrative_territorial_entity } UNION { ?r property:patron_saint ?b . ?r rdf:type ontology:temple . ?b rdf:type ontology:common_name } } GROUP BY ?b } . FILTER ( ?p = 55 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40807
P17
Q15617994
USER
Which administrative territory does God Save the Queen belong to ?
(Q40807,P17,c(Q15617994))
action filter_type
action find
entity Q40807
relation P17
type Q15617994
['Q40807', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q40807 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
God Save the Queen
action filter_type
action find
entity God Save the Queen
relation country
type designation for an administrative territorial entity
['God Save the Queen', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:God_Save_the_Queen property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q40807,P17,c(Q15617994))
action filter_type
action find
entity Q40807
relation P17
type Q15617994
Save belong to the [ANSWER]
['Q40807', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q40807 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
United Kingdom
Save belong to the United Kingdom
United Kingdom
action filter_type
action find
entity God Save the Queen
relation country
type designation for an administrative territorial entity
['God Save the Queen', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:God_Save_the_Queen property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21
P36
Q56061
USER
Which administrative territory is called the capital of England ?
(Q21,P36,c(Q56061))
action filter_type
action find
entity Q21
relation P36
type Q56061
['Q21', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q21 property:P36 ?q . ?q rdf:type ontology:Q56061 }
England
action filter_type
action find
entity England
relation capital
type administrative territorial entity
['England', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:England property:capital ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q21,P36,c(Q56061))
action filter_type
action find
entity Q21
relation P36
type Q56061
Be [ANSWER] is called the capital of England
['Q21', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q21 property:P36 ?q . ?q rdf:type ontology:Q56061 }
London
Be London is called the capital of England
London
action filter_type
action find
entity England
relation capital
type administrative territorial entity
['England', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:England property:capital ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q747846
Q56061
USER
And how about Ratanakiri Province?
(Q747846,P36,c(Q56061))
action filter_type
action find
entity Q747846
relation P36
type Q56061
['Q747846', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q747846 property:P36 ?x . ?x rdf:type ontology:Q56061 }
Ratanakiri Province
action filter_type
action find
entity Ratanakiri Province
relation capital
type administrative territorial entity
['Ratanakiri Province', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Ratanakiri_Province property:capital ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1350362
SYSTEM
Banlung
Q1350362
(Q747846,P36,c(Q56061))
action filter_type
action find
entity Q747846
relation P36
type Q56061
[ANSWER]
['Q747846', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q747846 property:P36 ?x . ?x rdf:type ontology:Q56061 }
Banlung
Banlung
action filter_type
action find
entity Ratanakiri Province
relation capital
type administrative territorial entity
['Ratanakiri Province', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Ratanakiri_Province property:capital ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]