Simple Question (Direct)
Simple Question
Q110975
P19
Q56061
USER
Which administrative territory was Theobald Kerner born at ?
(Q110975,P19,c(Q56061))
action filter_type
action find
entity Q110975
relation P19
type Q56061
['Q110975', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q110975 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Theobald Kerner
action filter_type
action find
entity Theobald Kerner
relation place of birth
type administrative territorial entity
['Theobald Kerner', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Theobald_Kerner property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q81811
SYSTEM
Gaildorf
Q81811
(Q110975,P19,c(Q56061))
action filter_type
action find
entity Q110975
relation P19
type Q56061
Theobald Kerner was born in [ANSWER]
['Q110975', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q110975 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Gaildorf
Theobald Kerner was born in Gaildorf
Gaildorf
action filter_type
action find
entity Theobald Kerner
relation place of birth
type administrative territorial entity
['Theobald Kerner', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Theobald_Kerner property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q81811
P159
Q43229
USER
Which organization has headquarters located at that administrative territory ?
(c(Q43229),P159,Q81811)
action filter_type
action find_reverse
entity Q81811
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q81811']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q43229 . ?h property:P159 resource:Q81811 }
Gaildorf
action filter_type
action find_reverse
entity Gaildorf
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Gaildorf']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:organization . ?h property:headquarters_location resource:Gaildorf }
[]
organization
Q21039726
SYSTEM
Bott
Q21039726
(c(Q43229),P159,Q81811)
action filter_type
action find_reverse
entity Q81811
relation P159
type Q43229
[ANSWER] has headquarters located at that administrative territory
[{'concept': 'Q43229'}, 'P159', 'Q81811']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q43229 . ?h property:P159 resource:Q81811 }
Bott
Bott has headquarters located at that administrative territory
Bott
action filter_type
action find_reverse
entity Gaildorf
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Gaildorf']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:organization . ?h property:headquarters_location resource:Gaildorf }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P85
Q484692
USER
What is the anthem for United States of America ?
(Q30,P85,c(Q484692))
action filter_type
action find
entity Q30
relation P85
type Q484692
['Q30', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?p WHERE { resource:Q30 property:P85 ?p . ?p rdf:type ontology:Q484692 }
United States of America
action filter_type
action find
entity United States of America
relation anthem
type hymn
['United States of America', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?p WHERE { resource:United_States_of_America property:anthem ?p . ?p rdf:type ontology:hymn }
[]
hymn
Q44696
SYSTEM
The Star-Spangled Banner
Q44696
(Q30,P85,c(Q484692))
action filter_type
action find
entity Q30
relation P85
type Q484692
The anthem for United States of America is [ANSWER]
['Q30', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?p WHERE { resource:Q30 property:P85 ?p . ?p rdf:type ontology:Q484692 }
The Star-Spangled Banner
The anthem for United States of America is The Star-Spangled Banner
The Star-Spangled Banner
action filter_type
action find
entity United States of America
relation anthem
type hymn
['United States of America', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?p WHERE { resource:United_States_of_America property:anthem ?p . ?p rdf:type ontology:hymn }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5481
Q484692
USER
And what about Republic of Tatarstan?
(Q5481,P85,c(Q484692))
action filter_type
action find
entity Q5481
relation P85
type Q484692
['Q5481', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?h WHERE { resource:Q5481 property:P85 ?h . ?h rdf:type ontology:Q484692 }
Republic of Tatarstan
action filter_type
action find
entity Republic of Tatarstan
relation anthem
type hymn
['Republic of Tatarstan', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?h WHERE { resource:Republic_of_Tatarstan property:anthem ?h . ?h rdf:type ontology:hymn }
[]
hymn
Q1199595
SYSTEM
National Anthem of the Republic of Tatarstan
Q1199595
(Q5481,P85,c(Q484692))
action filter_type
action find
entity Q5481
relation P85
type Q484692
[ANSWER]
['Q5481', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?h WHERE { resource:Q5481 property:P85 ?h . ?h rdf:type ontology:Q484692 }
National Anthem of the Republic of Tatarstan
National Anthem of the Republic of Tatarstan
action filter_type
action find
entity Republic of Tatarstan
relation anthem
type hymn
['Republic of Tatarstan', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?h WHERE { resource:Republic_of_Tatarstan property:anthem ?h . ?h rdf:type ontology:hymn }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1199595
P800
Q502895
USER
Whose notable work was that hymn ?
(c(Q502895),P800,Q1199595)
action filter_type
action find_reverse
entity Q1199595
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q1199595']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P800 resource:Q1199595 }
National Anthem of the Republic of Tatarstan
action filter_type
action find_reverse
entity National Anthem of the Republic of Tatarstan
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'National Anthem of the Republic of Tatarstan']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:notable_work resource:National_Anthem_of_the_Republic_of_Tatarstan }
[]
common name
Q4539685
SYSTEM
Röstäm Yaxin
Q4539685
(c(Q502895),P800,Q1199595)
action filter_type
action find_reverse
entity Q1199595
relation P800
type Q502895
[ANSWER] was that hymn
[{'concept': 'Q502895'}, 'P800', 'Q1199595']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P800 resource:Q1199595 }
Röstäm Yaxin
Röstäm Yaxin was that hymn
Röstäm Yaxin
action filter_type
action find_reverse
entity National Anthem of the Republic of Tatarstan
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'National Anthem of the Republic of Tatarstan']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:notable_work resource:National_Anthem_of_the_Republic_of_Tatarstan }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q4539685 Q900 Q16959802
P19
Q56061
USER
Was that person born at Kazan and Lanesborough ?
(Q4539685,P19,Q900) (Q4539685,P19,Q16959802)
action is_in
entity Q4539685
action intersection
action find_reverse
entity Q900
relation P19
action find_reverse
entity Q16959802
relation P19
['Q4539685', 'P19', 'Q900'] ['Q4539685', 'P19', 'Q16959802']
ASK WHERE { resource:Q4539685 property:P19 resource:Q900 . resource:Q4539685 property:P19 resource:Q16959802 }
Röstäm Yaxin Kazan Lanesborough
action is_in
entity Röstäm Yaxin
action intersection
action find_reverse
entity Kazan
relation place of birth
action find_reverse
entity Lanesborough
relation place of birth
['Röstäm Yaxin', 'place of birth', 'Kazan'] ['Röstäm Yaxin', 'place of birth', 'Lanesborough']
ASK WHERE { resource:Röstäm_Yaxin property:place_of_birth resource:Kazan . resource:Röstäm_Yaxin property:place_of_birth resource:Lanesborough }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q4539685,P19,Q900) (Q4539685,P19,Q16959802)
action is_in
entity Q4539685
action intersection
action find_reverse
entity Q900
relation P19
action find_reverse
entity Q16959802
relation P19
[ANSWER]
['Q4539685', 'P19', 'Q900'] ['Q4539685', 'P19', 'Q16959802']
ASK WHERE { resource:Q4539685 property:P19 resource:Q900 . resource:Q4539685 property:P19 resource:Q16959802 }
YES and NO respectively
action is_in
entity Röstäm Yaxin
action intersection
action find_reverse
entity Kazan
relation place of birth
action find_reverse
entity Lanesborough
relation place of birth
['Röstäm Yaxin', 'place of birth', 'Kazan'] ['Röstäm Yaxin', 'place of birth', 'Lanesborough']
ASK WHERE { resource:Röstäm_Yaxin property:place_of_birth resource:Kazan . resource:Röstäm_Yaxin property:place_of_birth resource:Lanesborough }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q625469 Q900
P17
Q15617994
USER
Which administrative territories are Kazan or Miñano Menor located in ?
OR((Q900,P17,c(Q15617994)), (Q625469,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q900
relation P17
action find
entity Q625469
relation P17
type Q15617994
{'OR': [['Q900', 'P17', {'concept': 'Q15617994'}], ['Q625469', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?d ) { ( resource:Q900 ) ( resource:Q625469 ) } . ?d property:P17 ?t } . ?t rdf:type ontology:Q15617994 }
Miñano Menor Kazan
action filter_type
action union
action find
entity Kazan
relation country
action find
entity Miñano Menor
relation country
type designation for an administrative territorial entity
{'OR': [['Kazan', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Miñano Menor', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?d ) { ( resource:Kazan ) ( resource:Miñano_Menor ) } . ?d property:country ?t } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q159
SYSTEM
Spain, Russia
Q29 Q159
OR((Q900,P17,c(Q15617994)), (Q625469,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q900
relation P17
action find
entity Q625469
relation P17
type Q15617994
Kazan or Miñano Menor are located in [ANSWERS]
{'OR': [['Q900', 'P17', {'concept': 'Q15617994'}], ['Q625469', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?d ) { ( resource:Q900 ) ( resource:Q625469 ) } . ?d property:P17 ?t } . ?t rdf:type ontology:Q15617994 }
Spain Russia
Kazan or Miñano Menor are located in Spain and Russia
Spain Russia
action filter_type
action union
action find
entity Kazan
relation country
action find
entity Miñano Menor
relation country
type designation for an administrative territorial entity
{'OR': [['Kazan', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Miñano Menor', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?d ) { ( resource:Kazan ) ( resource:Miñano_Menor ) } . ?d property:country ?t } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4658352
P495
Q838948
USER
Did A Month of Sundays originate in those administrative territories ?
(Q4658352,P495,Q29) (Q4658352,P495,Q159)
action is_in
entity prev_answer
action find
entity Q4658352
relation P495
['Q4658352', 'P495', 'Q29'] ['Q4658352', 'P495', 'Q159']
ASK WHERE { resource:Q4658352 property:P495 ?o . VALUES ( ?o ) { ( resource:Q29 ) ( resource:Q159 ) } }
A Month of Sundays
action is_in
entity prev_answer
action find
entity A Month of Sundays
relation country of origin
['A Month of Sundays', 'country of origin', 'Spain'] ['A Month of Sundays', 'country of origin', 'Russia']
ASK WHERE { resource:A_Month_of_Sundays property:country_of_origin ?o . VALUES ( ?o ) { ( resource:Spain ) ( resource:Russia ) } }
[]
work of art
SYSTEM
NO
(Q4658352,P495,Q29) (Q4658352,P495,Q159)
action is_in
entity prev_answer
action find
entity Q4658352
relation P495
[ANSWER]
['Q4658352', 'P495', 'Q29'] ['Q4658352', 'P495', 'Q159']
ASK WHERE { resource:Q4658352 property:P495 ?o . VALUES ( ?o ) { ( resource:Q29 ) ( resource:Q159 ) } }
No
action is_in
entity prev_answer
action find
entity A Month of Sundays
relation country of origin
['A Month of Sundays', 'country of origin', 'Spain'] ['A Month of Sundays', 'country of origin', 'Russia']
ASK WHERE { resource:A_Month_of_Sundays property:country_of_origin ?o . VALUES ( ?o ) { ( resource:Spain ) ( resource:Russia ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q838948 Q2342494
USER
How many administrative territories are the countries of origin of around 4844 works of art and collectables ?
(c(Q838948)|c(Q2342494),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
value 4844
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { FILTER ( ?a = 4844 ) . { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?a ) WHERE { { ?x property:P495 ?q . ?q rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 } UNION { ?x property:P495 ?q . ?q rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 } } GROUP BY ?q } }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
value 4844
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { FILTER ( ?a = 4844 ) . { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?a ) WHERE { { ?x property:country_of_origin ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable } UNION { ?x property:country_of_origin ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art } } GROUP BY ?q } }
[]
designation for an administrative territorial entity work of art collectable
SYSTEM
15
Q414 Q142 Q55 Q148 Q155 Q884 Q31 Q36 Q34 Q928 Q38 Q20 Q96 Q17 Q29
(c(Q838948)|c(Q2342494),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
value 4844
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { FILTER ( ?a = 4844 ) . { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?a ) WHERE { { ?x property:P495 ?q . ?q rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 } UNION { ?x property:P495 ?q . ?q rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 } } GROUP BY ?q } }
Argentina France Netherlands People's Republic of China Brazil South Korea Belgium Poland Sweden Philippines Italy Norway Mexico Japan Spain
15
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
value 4844
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { FILTER ( ?a = 4844 ) . { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?a ) WHERE { { ?x property:country_of_origin ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable } UNION { ?x property:country_of_origin ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art } } GROUP BY ?q } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with around 25 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 25
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?b ) WHERE { ?r property:P530 ?d . ?r rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?b = 25 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?b ) WHERE { ?r property:diplomatic_relation ?d . ?r rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?b = 25 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 25
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?b ) WHERE { ?r property:P530 ?d . ?r rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?b = 25 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?b ) WHERE { ?r property:diplomatic_relation ?d . ?r rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?b = 25 ) }
[]