Simple Question (Direct)
Simple Question
Q6257058
P21
Q290
USER
What is the sex of John Scott ?
(Q6257058,P21,c(Q290))
action filter_type
action find
entity Q6257058
relation P21
type Q290
['Q6257058', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q6257058 property:P21 ?l }
John Scott
action filter_type
action find
entity John Scott
relation gender
type sex
['John Scott', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:John_Scott property:gender ?l }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6257058,P21,c(Q290))
action filter_type
action find
entity Q6257058
relation P21
type Q290
The sex of John Scott is a [ANSWER]
['Q6257058', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q6257058 property:P21 ?l }
male
The sex of John Scott is a male
male
action filter_type
action find
entity John Scott
relation gender
type sex
['John Scott', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:John_Scott property:gender ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P136
Q502895
USER
Which people as that sex as their class ?
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?e WHERE { ?e property:P136 resource:Q6581097 . ?e rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?e WHERE { ?e property:genre resource:male . ?e rdf:type ontology:common_name }
[]
common name
Q313288 Q18221191 Q23766532
SYSTEM
Augustus Pugin, Alessandro Gregorio Capponi, Pierre Laviron
Q19796723 Q23766532 Q313288 Q18221191
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?e WHERE { ?e property:P136 resource:Q6581097 . ?e rdf:type ontology:Q502895 }
Francesc Xavier Avilés i Puigvert Pierre Laviron Augustus Pugin Alessandro Gregorio Capponi
Augustus Pugin Alessandro Gregorio Capponi Pierre Laviron
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?e WHERE { ?e property:genre resource:male . ?e rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q186363 Q313288
P149 P84
Q16970
USER
Which churches were designed by Augustus Pugin and uses architectural style of Gothic Revival architecture ?
AND((c(Q16970),P84,Q313288), (c(Q16970),P149,Q186363))
action filter_type
action intersection
action find_reverse
entity Q313288
relation P84
action find_reverse
entity Q186363
relation P149
type Q16970
{'AND': [[{'concept': 'Q16970'}, 'P84', 'Q313288'], [{'concept': 'Q16970'}, 'P149', 'Q186363']]}
SELECT DISTINCT ?e WHERE { ?e property:P84 resource:Q313288 . ?e property:P149 resource:Q186363 . ?e rdf:type ontology:Q16970 }
Gothic Revival architecture Augustus Pugin
action filter_type
action intersection
action find_reverse
entity Augustus Pugin
relation architect
action find_reverse
entity Gothic Revival architecture
relation architectural style
type church
{'AND': [[{'concept': 'church'}, 'architect', 'Augustus Pugin'], [{'concept': 'church'}, 'architectural style', 'Gothic Revival architecture']]}
SELECT DISTINCT ?e WHERE { ?e property:architect resource:Augustus_Pugin . ?e property:architectural_style resource:Gothic_Revival_architecture . ?e rdf:type ontology:church }
[]
church
Q1357895 Q1638891 Q1451262 Q1897809 Q1545350 Q1138066
SYSTEM
Northampton Cathedral, St Mary's Cathedral, Newcastle upon Tyne, St George's Cathedral, Southwark, St Mary's Cathedral, Killarney, Nottingham Cathedral, St. Aidan's Cathedral
Q1357895 Q1638891 Q1451262 Q1897809 Q1545350 Q1138066
AND((c(Q16970),P84,Q313288), (c(Q16970),P149,Q186363))
action filter_type
action intersection
action find_reverse
entity Q313288
relation P84
action find_reverse
entity Q186363
relation P149
type Q16970
[ANSWERS] were designed by Augustus Pugin and uses architectural style of Gothic Revival architecture
{'AND': [[{'concept': 'Q16970'}, 'P84', 'Q313288'], [{'concept': 'Q16970'}, 'P149', 'Q186363']]}
SELECT DISTINCT ?e WHERE { ?e property:P84 resource:Q313288 . ?e property:P149 resource:Q186363 . ?e rdf:type ontology:Q16970 }
Northampton Cathedral St Mary's Cathedral, Newcastle upon Tyne St George's Cathedral, Southwark St Mary's Cathedral, Killarney Nottingham Cathedral St. Aidan's Cathedral
Northampton Cathedral, St Mary's Cathedral, Newcastle upon Tyne, St George's Cathedral, Southwark, St Mary's Cathedral, Killarney, Nottingham Cathedral and St. Aidan's Cathedral were designed by Augustus Pugin and uses architectural style of Gothic Revival architecture
Northampton Cathedral St Mary's Cathedral, Newcastle upon Tyne St George's Cathedral, Southwark St Mary's Cathedral, Killarney Nottingham Cathedral St. Aidan's Cathedral
action filter_type
action intersection
action find_reverse
entity Augustus Pugin
relation architect
action find_reverse
entity Gothic Revival architecture
relation architectural style
type church
{'AND': [[{'concept': 'church'}, 'architect', 'Augustus Pugin'], [{'concept': 'church'}, 'architectural style', 'Gothic Revival architecture']]}
SELECT DISTINCT ?e WHERE { ?e property:architect resource:Augustus_Pugin . ?e property:architectural_style resource:Gothic_Revival_architecture . ?e rdf:type ontology:church }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1357895
P17
Q15617994
USER
Which administrative territory does that church belong to ?
(Q1357895,P17,c(Q15617994))
action filter_type
action find
entity Q1357895
relation P17
type Q15617994
['Q1357895', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q1357895 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Northampton Cathedral
action filter_type
action find
entity Northampton Cathedral
relation country
type designation for an administrative territorial entity
['Northampton Cathedral', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Northampton_Cathedral property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1638891
SYSTEM
Did you mean St Mary's Cathedral, Newcastle upon Tyne ?
Q1357895 Q1638891 Q1451262 Q1897809 Q1545350 Q1138066
(Q1357895,P17,c(Q15617994)) (Q1638891,P17,c(Q15617994)) (Q1451262,P17,c(Q15617994)) (Q1897809,P17,c(Q15617994)) (Q1545350,P17,c(Q15617994)) (Q1138066,P17,c(Q15617994))
[ANSWER]
['Q1357895', 'P17', {'concept': 'Q15617994'}] ['Q1638891', 'P17', {'concept': 'Q15617994'}] ['Q1451262', 'P17', {'concept': 'Q15617994'}] ['Q1897809', 'P17', {'concept': 'Q15617994'}] ['Q1545350', 'P17', {'concept': 'Q15617994'}] ['Q1138066', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q1357895 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Northampton Cathedral St Mary's Cathedral, Newcastle upon Tyne St George's Cathedral, Southwark St Mary's Cathedral, Killarney Nottingham Cathedral St. Aidan's Cathedral
Did you mean St Mary's Cathedral, Newcastle upon Tyne ?
St Mary's Cathedral, Newcastle upon Tyne
['Northampton Cathedral', 'country', {'concept': 'designation for an administrative territorial entity'}] ["St Mary's Cathedral, Newcastle upon Tyne", 'country', {'concept': 'designation for an administrative territorial entity'}] ["St George's Cathedral, Southwark", 'country', {'concept': 'designation for an administrative territorial entity'}] ["St Mary's Cathedral, Killarney", 'country', {'concept': 'designation for an administrative territorial entity'}] ['Nottingham Cathedral', 'country', {'concept': 'designation for an administrative territorial entity'}] ["St. Aidan's Cathedral", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Northampton_Cathedral property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Northampton Cathedral. Could you tell me the answer for that?
(Q1357895,P17,c(Q15617994))
Q1357895
['Q1357895', 'P17', {'concept': 'Q15617994'}]
['Northampton Cathedral', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q145
SYSTEM
United Kingdom
Q145
(Q1357895,P17,c(Q15617994))
action filter_type
action find
entity Q1357895
relation P17
type Q15617994
That church belongs to [ANSWER]
['Q1357895', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q1357895 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
United Kingdom
That church belongs to United Kingdom
United Kingdom
action filter_type
action find
entity Northampton Cathedral
relation country
type designation for an administrative territorial entity
['Northampton Cathedral', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Northampton_Cathedral property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P610
Q16889133
USER
Which is the highest peak of that administrative territory ?
(Q145,P610,c(Q16889133))
action filter_type
action find
entity Q145
relation P610
type Q16889133
['Q145', 'P610', {'concept': 'Q16889133'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q16889133 . resource:Q145 property:P610 ?h }
United Kingdom
action filter_type
action find
entity United Kingdom
relation highest point
type class
['United Kingdom', 'highest point', {'concept': 'class'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:class . resource:United_Kingdom property:highest_point ?h }
[]
class
Q104674
SYSTEM
Ben Nevis
Q104674
(Q145,P610,c(Q16889133))
action filter_type
action find
entity Q145
relation P610
type Q16889133
The highest peak of that administrative territory is Mount [ANSWER]
['Q145', 'P610', {'concept': 'Q16889133'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q16889133 . resource:Q145 property:P610 ?h }
Ben Nevis
The highest peak of that administrative territory is Mount Ben Nevis
Ben Nevis
action filter_type
action find
entity United Kingdom
relation highest point
type class
['United Kingdom', 'highest point', {'concept': 'class'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:class . resource:United_Kingdom property:highest_point ?h }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q104674 Q691328
P610
Q15617994
USER
Is that class the highest point of Nostorf ?
(Q691328,P610,Q104674)
action is_in
entity Q691328
action find
entity Q104674
relation P610
['Q691328', 'P610', 'Q104674']
ASK WHERE { resource:Q104674 property:P610 resource:Q691328 }
Ben Nevis Nostorf
action is_in
entity Nostorf
action find
entity Ben Nevis
relation highest point
['Nostorf', 'highest point', 'Ben Nevis']
ASK WHERE { resource:Ben_Nevis property:highest_point resource:Nostorf }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q691328,P610,Q104674)
action is_in
entity Q691328
action find
entity Q104674
relation P610
[ANSWER]
['Q691328', 'P610', 'Q104674']
ASK WHERE { resource:Q104674 property:P610 resource:Q691328 }
No
action is_in
entity Nostorf
action find
entity Ben Nevis
relation highest point
['Nostorf', 'highest point', 'Ben Nevis']
ASK WHERE { resource:Ben_Nevis property:highest_point resource:Nostorf }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q313288 Q4775787
P40
Q502895
USER
Is Anton Gág an offspring of Augustus Pugin ?
(Q313288,P40,Q4775787)
action is_in
entity Q4775787
action find
entity Q313288
relation P40
['Q313288', 'P40', 'Q4775787']
ASK WHERE { resource:Q313288 property:P40 resource:Q4775787 }
Augustus Pugin Anton Gág
action is_in
entity Anton Gág
action find
entity Augustus Pugin
relation child
['Augustus Pugin', 'child', 'Anton Gág']
ASK WHERE { resource:Augustus_Pugin property:child resource:Anton_Gág }
[]
common name
SYSTEM
NO
(Q313288,P40,Q4775787)
action is_in
entity Q4775787
action find
entity Q313288
relation P40
[ANSWER]
['Q313288', 'P40', 'Q4775787']
ASK WHERE { resource:Q313288 property:P40 resource:Q4775787 }
No
action is_in
entity Anton Gág
action find
entity Augustus Pugin
relation child
['Augustus Pugin', 'child', 'Anton Gág']
ASK WHERE { resource:Augustus_Pugin property:child resource:Anton_Gág }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q145
P530
Q1048835
USER
How many political territories holds diplomatic relationship with United Kingdom ?
(Q145,P530,c(Q1048835))
action count
action filter_type
action find
entity Q145
relation P530
type Q1048835
['Q145', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q145 property:P530 ?w . ?w rdf:type ontology:Q1048835 }
United Kingdom
action count
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:United_Kingdom property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q183 Q408 Q16
(Q145,P530,c(Q1048835))
action count
action filter_type
action find
entity Q145
relation P530
type Q1048835
[ANSWER]
['Q145', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q145 property:P530 ?w . ?w rdf:type ontology:Q1048835 }
Germany Australia Canada
3
action count
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:United_Kingdom property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q783
Q1048835
USER
And also tell me about Honduras?
(Q783,P530,c(Q1048835))
action count
action filter_type
action find
entity Q783
relation P530
type Q1048835
['Q783', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Q783 property:P530 ?v . ?v rdf:type ontology:Q1048835 }
Honduras
action count
action filter_type
action find
entity Honduras
relation diplomatic relation
type political territorial entity
['Honduras', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Honduras property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
(Q783,P530,c(Q1048835))
action count
action filter_type
action find
entity Q783
relation P530
type Q1048835
[ANSWER]
['Q783', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Q783 property:P530 ?v . ?v rdf:type ontology:Q1048835 }
2
action count
action filter_type
action find
entity Honduras
relation diplomatic relation
type political territorial entity
['Honduras', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Honduras property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P17
Q15617994
USER
Which administrative territory is United Kingdom a part of ?
(Q145,P17,c(Q15617994))
action filter_type
action find
entity Q145
relation P17
type Q15617994
['Q145', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q145 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation country
type designation for an administrative territorial entity
['United Kingdom', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:United_Kingdom property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q145,P17,c(Q15617994))
action filter_type
action find
entity Q145
relation P17
type Q15617994
[ANSWER] is [ANSWER] a part of
['Q145', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q145 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is United Kingdom a part of
United Kingdom
action filter_type
action find
entity United Kingdom
relation country
type designation for an administrative territorial entity
['United Kingdom', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:United_Kingdom property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P112
Q484652
USER
Which international organization was established by that administrative territory ?
(c(Q484652),P112,Q145)
action filter_type
action find_reverse
entity Q145
relation P112
type Q484652
[{'concept': 'Q484652'}, 'P112', 'Q145']
SELECT DISTINCT ?x WHERE { ?x property:P112 resource:Q145 . ?x rdf:type ontology:Q484652 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation founder
type international organization
[{'concept': 'international organization'}, 'founder', 'United Kingdom']
SELECT DISTINCT ?x WHERE { ?x property:founder resource:United_Kingdom . ?x rdf:type ontology:international_organization }
[]
international organization
Q42262
SYSTEM
European Space Agency
Q42262
(c(Q484652),P112,Q145)
action filter_type
action find_reverse
entity Q145
relation P112
type Q484652
[ANSWER] was established by that administrative territory
[{'concept': 'Q484652'}, 'P112', 'Q145']
SELECT DISTINCT ?x WHERE { ?x property:P112 resource:Q145 . ?x rdf:type ontology:Q484652 }
European Space Agency
European Space Agency was established by that administrative territory
European Space Agency
action filter_type
action find_reverse
entity United Kingdom
relation founder
type international organization
[{'concept': 'international organization'}, 'founder', 'United Kingdom']
SELECT DISTINCT ?x WHERE { ?x property:founder resource:United_Kingdom . ?x rdf:type ontology:international_organization }
[]