Simple Question (Direct)
Simple Question
Q998069
P20
Q486972
USER
Where did the demise of Fekete György occur ?
(Q998069,P20,c(Q486972))
action filter_type
action find
entity Q998069
relation P20
type Q486972
['Q998069', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?m WHERE { resource:Q998069 property:P20 ?m . ?m rdf:type ontology:Q486972 }
Fekete György
action filter_type
action find
entity Fekete György
relation place of death
type human settlement
['Fekete György', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?m WHERE { resource:Fekete_György property:place_of_death ?m . ?m rdf:type ontology:human_settlement }
[]
human settlement
Q210205
SYSTEM
Pest
Q210205
(Q998069,P20,c(Q486972))
action filter_type
action find
entity Q998069
relation P20
type Q486972
The demise of Fekete György occurred in [ANSWER]
['Q998069', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?m WHERE { resource:Q998069 property:P20 ?m . ?m rdf:type ontology:Q486972 }
Pest
The demise of Fekete György occurred in Pest
Pest
action filter_type
action find
entity Fekete György
relation place of death
type human settlement
['Fekete György', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?m WHERE { resource:Fekete_György property:place_of_death ?m . ?m rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q210205
P138
Q17444909
USER
Which astronomical object type is the eponym of that human settlement ?
(c(Q17444909),P138,Q210205)
action filter_type
action find_reverse
entity Q210205
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q210205']
SELECT DISTINCT ?g WHERE { ?g property:P138 resource:Q210205 . ?g rdf:type ontology:Q17444909 }
Pest
action filter_type
action find_reverse
entity Pest
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Pest']
SELECT DISTINCT ?g WHERE { ?g property:named_after resource:Pest . ?g rdf:type ontology:astronomical_object_type }
[]
astronomical object type
Q700815
SYSTEM
6817 Pest
Q700815
(c(Q17444909),P138,Q210205)
action filter_type
action find_reverse
entity Q210205
relation P138
type Q17444909
[ANSWER] is the eponym of that human settlement
[{'concept': 'Q17444909'}, 'P138', 'Q210205']
SELECT DISTINCT ?g WHERE { ?g property:P138 resource:Q210205 . ?g rdf:type ontology:Q17444909 }
6817 Pest
6817 Pest is the eponym of that human settlement
6817 Pest
action filter_type
action find_reverse
entity Pest
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Pest']
SELECT DISTINCT ?g WHERE { ?g property:named_after resource:Pest . ?g rdf:type ontology:astronomical_object_type }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q700815 Q2179 Q1124100
P196
Q6999
USER
Does that astronomical object type consists of asteroid belt and NGC 5925 in its minor planet group ?
(Q700815,P196,Q2179) (Q700815,P196,Q1124100)
action is_in
entity Q700815
action intersection
action find_reverse
entity Q2179
relation P196
action find_reverse
entity Q1124100
relation P196
['Q700815', 'P196', 'Q2179'] ['Q700815', 'P196', 'Q1124100']
ASK WHERE { resource:Q700815 property:P196 resource:Q2179 . resource:Q700815 property:P196 resource:Q1124100 }
6817 Pest asteroid belt NGC 5925
action is_in
entity 6817 Pest
action intersection
action find_reverse
entity asteroid belt
relation minor planet group
action find_reverse
entity NGC 5925
relation minor planet group
['6817 Pest', 'minor planet group', 'asteroid belt'] ['6817 Pest', 'minor planet group', 'NGC 5925']
ASK WHERE { resource:6817_Pest property:minor_planet_group resource:asteroid_belt . resource:6817_Pest property:minor_planet_group resource:NGC_5925 }
[]
astronomical object
SYSTEM
YES and NO respectively
(Q700815,P196,Q2179) (Q700815,P196,Q1124100)
action is_in
entity Q700815
action intersection
action find_reverse
entity Q2179
relation P196
action find_reverse
entity Q1124100
relation P196
[ANSWER]
['Q700815', 'P196', 'Q2179'] ['Q700815', 'P196', 'Q1124100']
ASK WHERE { resource:Q700815 property:P196 resource:Q2179 . resource:Q700815 property:P196 resource:Q1124100 }
YES and NO respectively
action is_in
entity 6817 Pest
action intersection
action find_reverse
entity asteroid belt
relation minor planet group
action find_reverse
entity NGC 5925
relation minor planet group
['6817 Pest', 'minor planet group', 'asteroid belt'] ['6817 Pest', 'minor planet group', 'NGC 5925']
ASK WHERE { resource:6817_Pest property:minor_planet_group resource:asteroid_belt . resource:6817_Pest property:minor_planet_group resource:NGC_5925 }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P609
Q486972 Q12280 Q34442
USER
Which human settlements serves as the terminus locations of atleast 1 bridges and roads ?
(c(Q12280)|c(Q34442),P609,c(Q486972))
action atleast
action union
action find_reverse_tuple_counts
relation P609
type Q486972
type Q12280
action find_reverse_tuple_counts
relation P609
type Q486972
type Q34442
value 1
[[{'concept': 'Q12280'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?n ) WHERE { { ?o rdf:type ontology:Q486972 . ?q rdf:type ontology:Q34442 . ?q property:P609 ?o } UNION { ?q property:P609 ?o . ?o rdf:type ontology:Q486972 . ?q rdf:type ontology:Q12280 } } GROUP BY ?o } . FILTER ( ?n >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation terminus location
type human settlement
type bridge
action find_reverse_tuple_counts
relation terminus location
type human settlement
type road
value 1
[[{'concept': 'bridge'}, {'concept': 'road'}], 'terminus location', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?n ) WHERE { { ?o rdf:type ontology:human_settlement . ?q rdf:type ontology:road . ?q property:terminus_location ?o } UNION { ?q property:terminus_location ?o . ?o rdf:type ontology:human_settlement . ?q rdf:type ontology:bridge } } GROUP BY ?o } . FILTER ( ?n >= 1 ) }
[]
human settlement bridge road
Q192508 Q81220 Q9879
SYSTEM
Bergen op Zoom, Goes, Waalwijk
Q81186 Q9879 Q81159 Q3303930 Q81100 Q10667344 Q12344051 Q14389109 Q2616736 Q4736244 Q192508 Q465833 Q81220 Q2473420 Q3126518
(c(Q12280)|c(Q34442),P609,c(Q486972))
action atleast
action union
action find_reverse_tuple_counts
relation P609
type Q486972
type Q12280
action find_reverse_tuple_counts
relation P609
type Q486972
type Q34442
value 1
[ANSWERS] serve as the terminus locations of atleast 1 bridges and roads
[[{'concept': 'Q12280'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?n ) WHERE { { ?o rdf:type ontology:Q486972 . ?q rdf:type ontology:Q34442 . ?q property:P609 ?o } UNION { ?q property:P609 ?o . ?o rdf:type ontology:Q486972 . ?q rdf:type ontology:Q12280 } } GROUP BY ?o } . FILTER ( ?n >= 1 ) }
Genemuiden Waalwijk Hasselt Medemblik Hulst Sickla udde Weert Steenbergen Sint Anna ter Muiden Zwolle-Zuid Bergen op Zoom Schagen Goes Echt, Netherlands Hammarby Sjöstad
Bergen op Zoom, Goes and Waalwijk serve as the terminus locations of atleast 1 bridges and roads
Bergen op Zoom Goes Waalwijk
action atleast
action union
action find_reverse_tuple_counts
relation terminus location
type human settlement
type bridge
action find_reverse_tuple_counts
relation terminus location
type human settlement
type road
value 1
[[{'concept': 'bridge'}, {'concept': 'road'}], 'terminus location', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?n ) WHERE { { ?o rdf:type ontology:human_settlement . ?q rdf:type ontology:road . ?q property:terminus_location ?o } UNION { ?q property:terminus_location ?o . ?o rdf:type ontology:human_settlement . ?q rdf:type ontology:bridge } } GROUP BY ?o } . FILTER ( ?n >= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q486972 Q1048835
USER
Which political territories are twin city of atleast 2 human settlements ?
(c(Q1048835),P190,c(Q486972))
action atleast
action find_tuple_counts
relation P190
type Q1048835
type Q486972
value 2
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?q ) WHERE { ?o property:P190 ?k . ?o rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q486972 } GROUP BY ?o } . FILTER ( ?q >= 2 ) }
action atleast
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
value 2
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?q ) WHERE { ?o property:sister_city ?k . ?o rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:human_settlement } GROUP BY ?o } . FILTER ( ?q >= 2 ) }
[]
human settlement political territorial entity
Q615722
SYSTEM
Santa Fe
Q615722
(c(Q1048835),P190,c(Q486972))
action atleast
action find_tuple_counts
relation P190
type Q1048835
type Q486972
value 2
[ANSWER] is twin city of atleast 2 human settlements
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?q ) WHERE { ?o property:P190 ?k . ?o rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q486972 } GROUP BY ?o } . FILTER ( ?q >= 2 ) }
Santa Fe
Santa Fe is twin city of atleast 2 human settlements
Santa Fe
action atleast
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
value 2
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?q ) WHERE { ?o property:sister_city ?k . ?o rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:human_settlement } GROUP BY ?o } . FILTER ( ?q >= 2 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q615722
P159
Q4830453
USER
Which business enterprise has HQ at that political territory ?
(c(Q4830453),P159,Q615722)
action filter_type
action find_reverse
entity Q615722
relation P159
type Q4830453
[{'concept': 'Q4830453'}, 'P159', 'Q615722']
SELECT DISTINCT ?b WHERE { ?b property:P159 resource:Q615722 . ?b rdf:type ontology:Q4830453 }
Santa Fe
action filter_type
action find_reverse
entity Santa Fe
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Santa Fe']
SELECT DISTINCT ?b WHERE { ?b property:headquarters_location resource:Santa_Fe . ?b rdf:type ontology:business_enterprise }
[]
business enterprise
Q1328397
SYSTEM
Hurtan
Q1328397
(c(Q4830453),P159,Q615722)
action filter_type
action find_reverse
entity Q615722
relation P159
type Q4830453
[ANSWER] has HQ at that political territory
[{'concept': 'Q4830453'}, 'P159', 'Q615722']
SELECT DISTINCT ?b WHERE { ?b property:P159 resource:Q615722 . ?b rdf:type ontology:Q4830453 }
Hurtan
Hurtan has HQ at that political territory
Hurtan
action filter_type
action find_reverse
entity Santa Fe
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Santa Fe']
SELECT DISTINCT ?b WHERE { ?b property:headquarters_location resource:Santa_Fe . ?b rdf:type ontology:business_enterprise }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q615722
P47
Q56061
USER
Which administrative territory shares border with Santa Fe ?
(Q615722,P47,c(Q56061))
action filter_type
action find
entity Q615722
relation P47
type Q56061
['Q615722', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q615722 property:P47 ?z . ?z rdf:type ontology:Q56061 }
Santa Fe
action filter_type
action find
entity Santa Fe
relation shares border with
type administrative territorial entity
['Santa Fe', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Santa_Fe property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8810
SYSTEM
Granada
Q8810
(Q615722,P47,c(Q56061))
action filter_type
action find
entity Q615722
relation P47
type Q56061
[ANSWER] shares border with Santa Fe
['Q615722', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q615722 property:P47 ?z . ?z rdf:type ontology:Q56061 }
Granada
Granada shares border with Santa Fe
Granada
action filter_type
action find
entity Santa Fe
relation shares border with
type administrative territorial entity
['Santa Fe', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Santa_Fe property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q192508
P1376
Q13220204
USER
What has Bergen op Zoom as its capital ?
(Q192508,P1376,c(Q13220204))
action filter_type
action find
entity Q192508
relation P1376
type Q13220204
['Q192508', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?z WHERE { resource:Q192508 property:P1376 ?z . ?z rdf:type ontology:Q13220204 }
Bergen op Zoom
action filter_type
action find
entity Bergen op Zoom
relation capital of
type second-level administrative country subdivision
['Bergen op Zoom', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?z WHERE { resource:Bergen_op_Zoom property:capital_of ?z . ?z rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q9814
SYSTEM
Bergen op Zoom
Q9814
(Q192508,P1376,c(Q13220204))
action filter_type
action find
entity Q192508
relation P1376
type Q13220204
Have [ANSWER] has [ANSWER] as its capital
['Q192508', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?z WHERE { resource:Q192508 property:P1376 ?z . ?z rdf:type ontology:Q13220204 }
Bergen op Zoom
Have Bergen op Zoom has Bergen op Zoom as its capital
Bergen op Zoom
action filter_type
action find
entity Bergen op Zoom
relation capital of
type second-level administrative country subdivision
['Bergen op Zoom', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?z WHERE { resource:Bergen_op_Zoom property:capital_of ?z . ?z rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6401844
Q13220204
USER
And how about Khlong Yai?
(Q6401844,P1376,c(Q13220204))
action filter_type
action find
entity Q6401844
relation P1376
type Q13220204
['Q6401844', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q13220204 . resource:Q6401844 property:P1376 ?r }
Khlong Yai
action filter_type
action find
entity Khlong Yai
relation capital of
type second-level administrative country subdivision
['Khlong Yai', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:second-level_administrative_country_subdivision . resource:Khlong_Yai property:capital_of ?r }
[]
second-level administrative country subdivision
Q385524
SYSTEM
Khlong Yai
Q385524
(Q6401844,P1376,c(Q13220204))
action filter_type
action find
entity Q6401844
relation P1376
type Q13220204
[ANSWER]
['Q6401844', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q13220204 . resource:Q6401844 property:P1376 ?r }
Khlong Yai
Khlong Yai
action filter_type
action find
entity Khlong Yai
relation capital of
type second-level administrative country subdivision
['Khlong Yai', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:second-level_administrative_country_subdivision . resource:Khlong_Yai property:capital_of ?r }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15262319 Q192508
P17
Q15617994
USER
Which administrative territories are Bergen op Zoom or Niempenou located in ?
OR((Q192508,P17,c(Q15617994)), (Q15262319,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q192508
relation P17
action find
entity Q15262319
relation P17
type Q15617994
{'OR': [['Q192508', 'P17', {'concept': 'Q15617994'}], ['Q15262319', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q192508 property:P17 ?o } UNION { resource:Q15262319 property:P17 ?o } } . ?o rdf:type ontology:Q15617994 }
Niempenou Bergen op Zoom
action filter_type
action union
action find
entity Bergen op Zoom
relation country
action find
entity Niempenou
relation country
type designation for an administrative territorial entity
{'OR': [['Bergen op Zoom', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Niempenou', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Bergen_op_Zoom property:country ?o } UNION { resource:Niempenou property:country ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55 Q945
SYSTEM
Netherlands, Togo
Q55 Q945
OR((Q192508,P17,c(Q15617994)), (Q15262319,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q192508
relation P17
action find
entity Q15262319
relation P17
type Q15617994
Bergen op Zoom or Niempenou are located in [ANSWERS]
{'OR': [['Q192508', 'P17', {'concept': 'Q15617994'}], ['Q15262319', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q192508 property:P17 ?o } UNION { resource:Q15262319 property:P17 ?o } } . ?o rdf:type ontology:Q15617994 }
Netherlands Togo
Bergen op Zoom or Niempenou are located in Netherlands and Togo
Netherlands Togo
action filter_type
action union
action find
entity Bergen op Zoom
relation country
action find
entity Niempenou
relation country
type designation for an administrative territorial entity
{'OR': [['Bergen op Zoom', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Niempenou', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Bergen_op_Zoom property:country ?o } UNION { resource:Niempenou property:country ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q55
P921
Q2342494
USER
Which collectable was primarily based on that administrative territory ?
(c(Q2342494),P921,Q55)
action filter_type
action find_reverse
entity Q55
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q55']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q2342494 . ?i property:P921 resource:Q55 }
Netherlands
action filter_type
action find_reverse
entity Netherlands
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'Netherlands']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:collectable . ?i property:main_subject resource:Netherlands }
[]
collectable
Clarification for simple ques.
Q55
SYSTEM
Did you mean Netherlands ?
Q55 Q945
(c(Q2342494),P921,Q55) (c(Q2342494),P921,Q945)
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q55'] [{'concept': 'Q2342494'}, 'P921', 'Q945']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q2342494 . ?i property:P921 resource:Q55 }
Netherlands Togo
Did you mean Netherlands ?
Netherlands
[{'concept': 'collectable'}, 'main subject', 'Netherlands'] [{'concept': 'collectable'}, 'main subject', 'Togo']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:collectable . ?i property:main_subject resource:Netherlands }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q2342494),P921,Q55)
[{'concept': 'Q2342494'}, 'P921', 'Q55']
[{'concept': 'collectable'}, 'main subject', 'Netherlands']
[]
Q26988708
SYSTEM
Nederlandse waternamen
Q26988708
(c(Q2342494),P921,Q55)
action filter_type
action find_reverse
entity Q55
relation P921
type Q2342494
[ANSWER] was primarily based on that administrative territory
[{'concept': 'Q2342494'}, 'P921', 'Q55']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q2342494 . ?i property:P921 resource:Q55 }
Nederlandse waternamen
Nederlandse waternamen was primarily based on that administrative territory
Nederlandse waternamen
action filter_type
action find_reverse
entity Netherlands
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'Netherlands']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:collectable . ?i property:main_subject resource:Netherlands }
[]