Simple Question (Direct)
Simple Question
Q863224
P734
Q82799
USER
Which name is associated with Billy Smith ?
(Q863224,P734,c(Q82799))
action filter_type
action find
entity Q863224
relation P734
type Q82799
['Q863224', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { resource:Q863224 property:P734 ?p . ?p rdf:type ontology:Q82799 }
Billy Smith
action filter_type
action find
entity Billy Smith
relation family name
type name
['Billy Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { resource:Billy_Smith property:family_name ?p . ?p rdf:type ontology:name }
[]
name
Q1158446
SYSTEM
Smith
Q1158446
(Q863224,P734,c(Q82799))
action filter_type
action find
entity Q863224
relation P734
type Q82799
He [ANSWER] is associated with Billy [ANSWER]
['Q863224', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { resource:Q863224 property:P734 ?p . ?p rdf:type ontology:Q82799 }
Smith
He Smith is associated with Billy Smith
Smith
action filter_type
action find
entity Billy Smith
relation family name
type name
['Billy Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { resource:Billy_Smith property:family_name ?p . ?p rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q863224
P641
Q349
USER
Which sport did that person participate in ?
(Q1158446,P641,c(Q349))
action filter_type
action find
entity Q863224
relation P641
type Q349
['Q1158446', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q863224 property:P641 ?c . ?c rdf:type ontology:Q349 }
Billy Smith
action filter_type
action find
entity Billy Smith
relation sport
type sport
['Smith', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Billy_Smith property:sport ?c . ?c rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q1158446,P641,c(Q349))
action filter_type
action find
entity Q863224
relation P641
type Q349
That person participated in [ANSWER]
['Q1158446', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q863224 property:P641 ?c . ?c rdf:type ontology:Q349 }
ice hockey
That person participated in ice hockey
ice hockey
action filter_type
action find
entity Billy Smith
relation sport
type sport
['Smith', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Billy_Smith property:sport ?c . ?c rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1158446
P734
Q6619679 Q15619164
USER
How many fictional humanoids and abstract beings have Smith as family name ?
(c(Q6619679),P734,Q1158446) (c(Q15619164),P734,Q1158446)
action count
action union
action filter_type
action find_reverse
entity Q1158446
relation P734
type Q6619679
action filter_type
action find_reverse
entity Q1158446
relation P734
type Q15619164
[{'concept': 'Q6619679'}, 'P734', 'Q1158446'] [{'concept': 'Q15619164'}, 'P734', 'Q1158446']
SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u rdf:type ?n . VALUES ( ?n ) { ( ontology:Q6619679 ) ( ontology:Q15619164 ) } }
Smith
action count
action union
action filter_type
action find_reverse
entity Smith
relation family name
type fictional humanoid
action filter_type
action find_reverse
entity Smith
relation family name
type abstract being
[{'concept': 'fictional humanoid'}, 'family name', 'Smith'] [{'concept': 'abstract being'}, 'family name', 'Smith']
SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u rdf:type ?n . VALUES ( ?n ) { ( ontology:fictional_humanoid ) ( ontology:abstract_being ) } }
[]
fictional humanoid abstract being
SYSTEM
20 fictional humanoids and 13 abstract beings
Q6680424 Q2532539 Q2836487 Q496280 Q5210634 Q6388507 Q5620772 Q21756360 Q24207823 Q10393650 Q8063725 Q540182 Q24207819 Q2713466 Q12176774 Q18571954 Q3057478 Q2985943 Q17038517 Q5201145 Q2532395 Q6178829 Q24207842 Q2085488 Q16238347 Q3809622 Q24207969 Q2879390 Q1061673 Q6780733 Q7434383 Q7364607 Q11428966
(c(Q6619679),P734,Q1158446) (c(Q15619164),P734,Q1158446)
action count
action union
action filter_type
action find_reverse
entity Q1158446
relation P734
type Q6619679
action filter_type
action find_reverse
entity Q1158446
relation P734
type Q15619164
[ANSWER]
[{'concept': 'Q6619679'}, 'P734', 'Q1158446'] [{'concept': 'Q15619164'}, 'P734', 'Q1158446']
SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u rdf:type ?n . VALUES ( ?n ) { ( ontology:Q6619679 ) ( ontology:Q15619164 ) } }
Loren Smith Francine Smith Hayley Smith Stan Smith Dale Smith Ken Smith Gus Smith Maud Smith Beth Smith Will Smith Zac Smith Romeo Smith Mortimer Smith Hayley Smith Jill Smith Roger Smith Luke Smith John "Hannibal" Smith Nick Smith Cyrus Smith Steve Smith Jennifer Smith Jerry Smith Agent Smith George Smith John Smith Summer Smith Will Smith Roger Mary Smith Scoop Smith Ronald-Ann Smith Winston Smith
20 fictional humanoids and 13 abstract beings
action count
action union
action filter_type
action find_reverse
entity Smith
relation family name
type fictional humanoid
action filter_type
action find_reverse
entity Smith
relation family name
type abstract being
[{'concept': 'fictional humanoid'}, 'family name', 'Smith'] [{'concept': 'abstract being'}, 'family name', 'Smith']
SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u rdf:type ?n . VALUES ( ?n ) { ( ontology:fictional_humanoid ) ( ontology:abstract_being ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26700654 Q863224
P27 P1001
Q1048835
USER
Which political territories are Billy Smith a civilian of or come under the jurisdiction of mayor of Tuy ?
OR((Q863224,P27,c(Q1048835)), (Q26700654,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q863224
relation P27
action find
entity Q26700654
relation P1001
type Q1048835
{'OR': [['Q863224', 'P27', {'concept': 'Q1048835'}], ['Q26700654', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q863224 property:P27 ?z } UNION { resource:Q26700654 property:P1001 ?z } } . ?z rdf:type ontology:Q1048835 }
mayor of Tuy Billy Smith
action filter_type
action union
action find
entity Billy Smith
relation country of citizenship
action find
entity mayor of Tuy
relation applies to jurisdiction
type political territorial entity
{'OR': [['Billy Smith', 'country of citizenship', {'concept': 'political territorial entity'}], ['mayor of Tuy', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Billy_Smith property:country_of_citizenship ?z } UNION { resource:mayor_of_Tuy property:applies_to_jurisdiction ?z } } . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q824122
SYSTEM
Canada, Tui
Q16 Q824122
OR((Q863224,P27,c(Q1048835)), (Q26700654,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q863224
relation P27
action find
entity Q26700654
relation P1001
type Q1048835
[ANSWERS] are Billy Smith a civilian of or come under the jurisdiction of mayor of Tuy
{'OR': [['Q863224', 'P27', {'concept': 'Q1048835'}], ['Q26700654', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q863224 property:P27 ?z } UNION { resource:Q26700654 property:P1001 ?z } } . ?z rdf:type ontology:Q1048835 }
Canada Tui
Canada and Tui are Billy Smith a civilian of or come under the jurisdiction of mayor of Tuy
Canada Tui
action filter_type
action union
action find
entity Billy Smith
relation country of citizenship
action find
entity mayor of Tuy
relation applies to jurisdiction
type political territorial entity
{'OR': [['Billy Smith', 'country of citizenship', {'concept': 'political territorial entity'}], ['mayor of Tuy', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Billy_Smith property:country_of_citizenship ?z } UNION { resource:mayor_of_Tuy property:applies_to_jurisdiction ?z } } . ?z rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26700654
P17
Q15617994
USER
Which administrative territory is that occupation located in ?
(Q16,P17,c(Q15617994)) (Q824122,P17,c(Q15617994))
action filter_type
action find
entity Q26700654
relation P17
type Q15617994
['Q16', 'P17', {'concept': 'Q15617994'}] ['Q824122', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q26700654 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
mayor of Tuy
action filter_type
action find
entity mayor of Tuy
relation country
type designation for an administrative territorial entity
['Canada', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Tui', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:mayor_of_Tuy property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q16,P17,c(Q15617994)) (Q824122,P17,c(Q15617994))
action filter_type
action find
entity Q26700654
relation P17
type Q15617994
That occupation is located in [ANSWER]
['Q16', 'P17', {'concept': 'Q15617994'}] ['Q824122', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q26700654 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Spain
That occupation is located in Spain
Spain
action filter_type
action find
entity mayor of Tuy
relation country
type designation for an administrative territorial entity
['Canada', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Tui', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:mayor_of_Tuy property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5527017
Q15617994
USER
And also tell me about Gate of Heaven Cemetery?
(Q5527017,P17,c(Q15617994))
action filter_type
action find
entity Q5527017
relation P17
type Q15617994
['Q5527017', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q5527017 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Gate of Heaven Cemetery
action filter_type
action find
entity Gate of Heaven Cemetery
relation country
type designation for an administrative territorial entity
['Gate of Heaven Cemetery', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Gate_of_Heaven_Cemetery property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q5527017,P17,c(Q15617994))
action filter_type
action find
entity Q5527017
relation P17
type Q15617994
[ANSWER]
['Q5527017', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q5527017 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Gate of Heaven Cemetery
relation country
type designation for an administrative territorial entity
['Gate of Heaven Cemetery', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Gate_of_Heaven_Cemetery property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3551520 Q16
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Canada and are the countries of citizenship of Ramon Naval Guico ?
AND((Q16,P530,c(Q15617994)), (Q3551520,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q16
relation P530
action find
entity Q3551520
relation P27
type Q15617994
{'AND': [['Q16', 'P530', {'concept': 'Q15617994'}], ['Q3551520', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { resource:Q3551520 property:P27 ?v . resource:Q16 property:P530 ?v . ?v rdf:type ontology:Q15617994 }
Ramon Naval Guico Canada
action filter_type
action intersection
action find
entity Canada
relation diplomatic relation
action find
entity Ramon Naval Guico
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Ramon Naval Guico', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Ramon_Naval_Guico property:country_of_citizenship ?v . resource:Canada property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q928
SYSTEM
Philippines
Q928
AND((Q16,P530,c(Q15617994)), (Q3551520,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q16
relation P530
action find
entity Q3551520
relation P27
type Q15617994
[ANSWER] have diplomatic relationships with Canada and are the countries of citizenship of Ramon Naval Guico
{'AND': [['Q16', 'P530', {'concept': 'Q15617994'}], ['Q3551520', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { resource:Q3551520 property:P27 ?v . resource:Q16 property:P530 ?v . ?v rdf:type ontology:Q15617994 }
Philippines
Philippines have diplomatic relationships with Canada and are the countries of citizenship of Ramon Naval Guico
Philippines
action filter_type
action intersection
action find
entity Canada
relation diplomatic relation
action find
entity Ramon Naval Guico
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Ramon Naval Guico', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Ramon_Naval_Guico property:country_of_citizenship ?v . resource:Canada property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P530
Q1048835 Q15617994
USER
How many political territories or administrative territories have diplomatic relations with that administrative territory ?
(c(Q1048835),P530,Q928) (c(Q15617994),P530,Q928) (c(Q1048835),P530,Q928) (c(Q15617994),P530,Q928)
action count
action union
action filter_type
action find_reverse
entity Q928
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q928
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', 'Q928'] [{'concept': 'Q15617994'}, 'P530', 'Q928'] [{'concept': 'Q1048835'}, 'P530', 'Q928'] [{'concept': 'Q15617994'}, 'P530', 'Q928']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { ?w rdf:type ontology:Q1048835 . ?w property:P530 resource:Q928 } UNION { ?w property:P530 resource:Q928 . ?w rdf:type ontology:Q15617994 } }
action count
action union
action filter_type
action find_reverse
entity Philippines
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Philippines
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Philippines'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Philippines'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Philippines'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Philippines']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { ?w rdf:type ontology:political_territorial_entity . ?w property:diplomatic_relation resource:Philippines } UNION { ?w property:diplomatic_relation resource:Philippines . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
5
Q977 Q408 Q16 Q38 Q34
(c(Q1048835),P530,Q928) (c(Q15617994),P530,Q928) (c(Q1048835),P530,Q928) (c(Q15617994),P530,Q928)
action count
action union
action filter_type
action find_reverse
entity Q928
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q928
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q928'] [{'concept': 'Q15617994'}, 'P530', 'Q928'] [{'concept': 'Q1048835'}, 'P530', 'Q928'] [{'concept': 'Q15617994'}, 'P530', 'Q928']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { ?w rdf:type ontology:Q1048835 . ?w property:P530 resource:Q928 } UNION { ?w property:P530 resource:Q928 . ?w rdf:type ontology:Q15617994 } }
Djibouti Australia Canada Italy Sweden
5
action count
action union
action filter_type
action find_reverse
entity Philippines
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Philippines
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Philippines'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Philippines'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Philippines'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Philippines']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { ?w rdf:type ontology:political_territorial_entity . ?w property:diplomatic_relation resource:Philippines } UNION { ?w property:diplomatic_relation resource:Philippines . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]