Simple Question (Direct)
Simple Question
Q3505979
P21
Q290
USER
What is the sex of Suzanne Jacob ?
(Q3505979,P21,c(Q290))
action filter_type
action find
entity Q3505979
relation P21
type Q290
['Q3505979', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q3505979 property:P21 ?k . ?k rdf:type ontology:Q290 }
Suzanne Jacob
action filter_type
action find
entity Suzanne Jacob
relation gender
type sex
['Suzanne Jacob', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Suzanne_Jacob property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q3505979,P21,c(Q290))
action filter_type
action find
entity Q3505979
relation P21
type Q290
The sex of Suzanne Jacob is the [ANSWER]
['Q3505979', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q3505979 property:P21 ?k . ?k rdf:type ontology:Q290 }
female
The sex of Suzanne Jacob is the female
female
action filter_type
action find
entity Suzanne Jacob
relation gender
type sex
['Suzanne Jacob', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Suzanne_Jacob property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3505979
P27
Q1048835
USER
Which political territory is the country of citizenship of Suzanne Jacob ?
(Q3505979,P27,c(Q1048835))
action filter_type
action find
entity Q3505979
relation P27
type Q1048835
['Q3505979', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q3505979 property:P27 ?j . ?j rdf:type ontology:Q1048835 }
Suzanne Jacob
action filter_type
action find
entity Suzanne Jacob
relation country of citizenship
type political territorial entity
['Suzanne Jacob', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Suzanne_Jacob property:country_of_citizenship ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q3505979,P27,c(Q1048835))
action filter_type
action find
entity Q3505979
relation P27
type Q1048835
[ANSWER] is the country of citizenship of Suzanne Jacob
['Q3505979', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q3505979 property:P27 ?j . ?j rdf:type ontology:Q1048835 }
Canada
Canada is the country of citizenship of Suzanne Jacob
Canada
action filter_type
action find
entity Suzanne Jacob
relation country of citizenship
type political territorial entity
['Suzanne Jacob', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Suzanne_Jacob property:country_of_citizenship ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q16 Q574658 Q711
P530
Q15617994
USER
Does that political territory have tactful political relations with Haibach and Mongolia ?
(Q16,P530,Q574658) (Q16,P530,Q711)
action is_in
entity Q16
action intersection
action find_reverse
entity Q574658
relation P530
action find_reverse
entity Q711
relation P530
['Q16', 'P530', 'Q574658'] ['Q16', 'P530', 'Q711']
ASK WHERE { resource:Q16 property:P530 resource:Q574658 . resource:Q16 property:P530 resource:Q711 }
Canada Haibach Mongolia
action is_in
entity Canada
action intersection
action find_reverse
entity Haibach
relation diplomatic relation
action find_reverse
entity Mongolia
relation diplomatic relation
['Canada', 'diplomatic relation', 'Haibach'] ['Canada', 'diplomatic relation', 'Mongolia']
ASK WHERE { resource:Canada property:diplomatic_relation resource:Haibach . resource:Canada property:diplomatic_relation resource:Mongolia }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q16,P530,Q574658) (Q16,P530,Q711)
action is_in
entity Q16
action intersection
action find_reverse
entity Q574658
relation P530
action find_reverse
entity Q711
relation P530
[ANSWER]
['Q16', 'P530', 'Q574658'] ['Q16', 'P530', 'Q711']
ASK WHERE { resource:Q16 property:P530 resource:Q574658 . resource:Q16 property:P530 resource:Q711 }
NO and YES respectively
action is_in
entity Canada
action intersection
action find_reverse
entity Haibach
relation diplomatic relation
action find_reverse
entity Mongolia
relation diplomatic relation
['Canada', 'diplomatic relation', 'Haibach'] ['Canada', 'diplomatic relation', 'Mongolia']
ASK WHERE { resource:Canada property:diplomatic_relation resource:Haibach . resource:Canada property:diplomatic_relation resource:Mongolia }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P1532
Q1194951
USER
Which national sports team plays for that political territory ?
action filter_type
action find_reverse
entity Q16
relation P1532
type Q1194951
SELECT DISTINCT ?i WHERE { ?i property:P1532 resource:Q16 . ?i rdf:type ontology:Q1194951 }
Canada
action filter_type
action find_reverse
entity Canada
relation country for sport
type national sports team
SELECT DISTINCT ?i WHERE { ?i property:country_for_sport resource:Canada . ?i rdf:type ontology:national_sports_team }
[]
national sports team
Q208635
SYSTEM
Canada national soccer team
Q208635
action filter_type
action find_reverse
entity Q16
relation P1532
type Q1194951
[ANSWER] plays for that political territory
SELECT DISTINCT ?i WHERE { ?i property:P1532 resource:Q16 . ?i rdf:type ontology:Q1194951 }
Canada national soccer team
Canada national soccer team plays for that political territory
Canada national soccer team
action filter_type
action find_reverse
entity Canada
relation country for sport
type national sports team
SELECT DISTINCT ?i WHERE { ?i property:country_for_sport resource:Canada . ?i rdf:type ontology:national_sports_team }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q16
P530
Q183366 Q1048835
USER
How many territories and political territories have diplomatic relationships with Canada ?
(Q16,P530,c(Q183366)) (Q16,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q16
relation P530
type Q183366
action filter_type
action find
entity Q16
relation P530
type Q1048835
['Q16', 'P530', {'concept': 'Q183366'}] ['Q16', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { resource:Q16 property:P530 ?g . ?g rdf:type ontology:Q183366 } UNION { resource:Q16 property:P530 ?g . ?g rdf:type ontology:Q1048835 } }
Canada
action count
action union
action filter_type
action find
entity Canada
relation diplomatic relation
type territory
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
['Canada', 'diplomatic relation', {'concept': 'territory'}] ['Canada', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { resource:Canada property:diplomatic_relation ?g . ?g rdf:type ontology:territory } UNION { resource:Canada property:diplomatic_relation ?g . ?g rdf:type ontology:political_territorial_entity } }
[]
territory political territorial entity
SYSTEM
1 territories and 4 political territories
Q664 Q408 Q846 Q35 Q183
(Q16,P530,c(Q183366)) (Q16,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q16
relation P530
type Q183366
action filter_type
action find
entity Q16
relation P530
type Q1048835
[ANSWER]
['Q16', 'P530', {'concept': 'Q183366'}] ['Q16', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { resource:Q16 property:P530 ?g . ?g rdf:type ontology:Q183366 } UNION { resource:Q16 property:P530 ?g . ?g rdf:type ontology:Q1048835 } }
New Zealand Australia Qatar Denmark Germany
1 territories and 4 political territories
action count
action union
action filter_type
action find
entity Canada
relation diplomatic relation
type territory
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
['Canada', 'diplomatic relation', {'concept': 'territory'}] ['Canada', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { resource:Canada property:diplomatic_relation ?g . ?g rdf:type ontology:territory } UNION { resource:Canada property:diplomatic_relation ?g . ?g rdf:type ontology:political_territorial_entity } }
[]