Simple Question (Direct)
Simple Question
Q5195886
P39
Q12737077
USER
What was the position for which Curtis Shake was appointed ?
(Q5195886,P39,c(Q12737077))
action filter_type
action find
entity Q5195886
relation P39
type Q12737077
['Q5195886', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q5195886 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Curtis Shake
action filter_type
action find
entity Curtis Shake
relation position held
type occupation
['Curtis Shake', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Curtis_Shake property:position_held ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q19362907
SYSTEM
member of the State Senate of Indiana
Q19362907
(Q5195886,P39,c(Q12737077))
action filter_type
action find
entity Q5195886
relation P39
type Q12737077
The [ANSWER]
['Q5195886', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q5195886 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
member of the State Senate of Indiana
The member of the State Senate of Indiana
member of the State Senate of Indiana
action filter_type
action find
entity Curtis Shake
relation position held
type occupation
['Curtis Shake', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Curtis_Shake property:position_held ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5195886
P106
Q12737077
USER
Which occupations have that person as his/her 's career ?
(Q19362907,P106,c(Q12737077))
action filter_type
action find
entity Q5195886
relation P106
type Q12737077
['Q19362907', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q5195886 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Curtis Shake
action filter_type
action find
entity Curtis Shake
relation occupation
type occupation
['member of the State Senate of Indiana', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Curtis_Shake property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q16533 Q82955
SYSTEM
judge, politician
Q16533 Q82955
(Q19362907,P106,c(Q12737077))
action filter_type
action find
entity Q5195886
relation P106
type Q12737077
A [ANSWERS] have that person as his/her 's career
['Q19362907', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q5195886 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
judge politician
A judge and politician have that person as his/her 's career
judge politician
action filter_type
action find
entity Curtis Shake
relation occupation
type occupation
['member of the State Senate of Indiana', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Curtis_Shake property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5195886
P21
Q290
USER
Which sex does that person belong to ?
(Q16533,P21,c(Q290)) (Q82955,P21,c(Q290))
action filter_type
action find
entity Q5195886
relation P21
type Q290
['Q16533', 'P21', {'concept': 'Q290'}] ['Q82955', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q5195886 property:P21 ?b . ?b rdf:type ontology:Q290 }
Curtis Shake
action filter_type
action find
entity Curtis Shake
relation gender
type sex
['judge', 'gender', {'concept': 'sex'}] ['politician', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Curtis_Shake property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16533,P21,c(Q290)) (Q82955,P21,c(Q290))
action filter_type
action find
entity Q5195886
relation P21
type Q290
That person belongs to [ANSWER]
['Q16533', 'P21', {'concept': 'Q290'}] ['Q82955', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q5195886 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Curtis Shake
relation gender
type sex
['judge', 'gender', {'concept': 'sex'}] ['politician', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Curtis_Shake property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5195886
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q5195886
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q5195886 property:P27 ?a }
Curtis Shake
action filter_type
action find
entity Curtis Shake
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Curtis_Shake property:country_of_citizenship ?a }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q5195886
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q5195886 property:P27 ?a }
United States of America
The United States of America is that person an inhabitant of
United States of America
action filter_type
action find
entity Curtis Shake
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Curtis_Shake property:country_of_citizenship ?a }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30 Q49
P30
Q2221906
USER
Is North America that administrative territory situated ?
(Q30,P30,Q49)
action is_in
entity Q49
action find
entity Q30
relation P30
['Q30', 'P30', 'Q49']
ASK WHERE { resource:Q30 property:P30 resource:Q49 }
United States of America North America
action is_in
entity North America
action find
entity United States of America
relation continent
['United States of America', 'continent', 'North America']
ASK WHERE { resource:United_States_of_America property:continent resource:North_America }
[]
geographic location
SYSTEM
YES
(Q30,P30,Q49)
action is_in
entity Q49
action find
entity Q30
relation P30
[ANSWER]
['Q30', 'P30', 'Q49']
ASK WHERE { resource:Q30 property:P30 resource:Q49 }
Yes
action is_in
entity North America
action find
entity United States of America
relation continent
['United States of America', 'continent', 'North America']
ASK WHERE { resource:United_States_of_America property:continent resource:North_America }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q3660718 Q30
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relations with United States of America and are not Khazar Stadium present in ?
AND((Q30,P530,c(Q15617994)), NOT((Q3660718,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q30
relation P530
action find
entity Q3660718
relation P17
type Q15617994
{'AND': [['Q30', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q3660718', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . resource:Q30 property:P530 ?c . FILTER NOT EXISTS { resource:Q3660718 property:P17 ?c } }
Khazar Stadium United States of America
action filter_type
action difference
action find
entity United States of America
relation diplomatic relation
action find
entity Khazar Stadium
relation country
type designation for an administrative territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Khazar Stadium', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:United_States_of_America property:diplomatic_relation ?c . FILTER NOT EXISTS { resource:Khazar_Stadium property:country ?c } }
[]
designation for an administrative territorial entity
Q403 Q414 Q222 Q796 Q155 Q889 Q37 Q17 Q801 Q953
SYSTEM
Some of them are Serbia, Argentina, Albania, Iraq, Brazil, Afghanistan, Lithuania, Japan, Israel, Zambia
Q805 Q38 Q222 Q801 Q155 Q148 Q1011 Q889 Q796 Q17 Q37 Q953 Q668 Q403 Q347 Q414
AND((Q30,P530,c(Q15617994)), NOT((Q3660718,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q30
relation P530
action find
entity Q3660718
relation P17
type Q15617994
[ANSWERS] have diplomatic relations with United States of America and are not Khazar Stadium present in
{'AND': [['Q30', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q3660718', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . resource:Q30 property:P530 ?c . FILTER NOT EXISTS { resource:Q3660718 property:P17 ?c } }
Yemen Italy Albania Israel Brazil People's Republic of China Cape Verde Afghanistan Iraq Japan Lithuania Zambia India Serbia Liechtenstein Argentina
Serbia, Argentina, Albania, Iraq, Brazil, Afghanistan, Lithuania, Japan, Israel and Zambia have diplomatic relations with United States of America and are not Khazar Stadium present in
Serbia Argentina Albania Iraq Brazil Afghanistan Lithuania Japan Israel Zambia
action filter_type
action difference
action find
entity United States of America
relation diplomatic relation
action find
entity Khazar Stadium
relation country
type designation for an administrative territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Khazar Stadium', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:United_States_of_America property:diplomatic_relation ?c . FILTER NOT EXISTS { resource:Khazar_Stadium property:country ?c } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q17 Q865
P495
Q838948
USER
How many works of art originate at Japan and Taiwan ?
(c(Q838948),P495,Q17) (c(Q838948),P495,Q865)
action count
action intersection
action filter_type
action find_reverse
entity Q17
relation P495
type Q838948
action filter_type
action find_reverse
entity Q865
relation P495
type Q838948
[{'concept': 'Q838948'}, 'P495', 'Q17'] [{'concept': 'Q838948'}, 'P495', 'Q865']
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u property:P495 resource:Q17 . ?u rdf:type ontology:Q838948 . ?u property:P495 resource:Q865 . ?u rdf:type ontology:Q838948 }
Japan Taiwan
action count
action intersection
action filter_type
action find_reverse
entity Japan
relation country of origin
type work of art
action filter_type
action find_reverse
entity Taiwan
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'Japan'] [{'concept': 'work of art'}, 'country of origin', 'Taiwan']
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u property:country_of_origin resource:Japan . ?u rdf:type ontology:work_of_art . ?u property:country_of_origin resource:Taiwan . ?u rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
2
Q23794605 Q704513
(c(Q838948),P495,Q17) (c(Q838948),P495,Q865)
action count
action intersection
action filter_type
action find_reverse
entity Q17
relation P495
type Q838948
action filter_type
action find_reverse
entity Q865
relation P495
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P495', 'Q17'] [{'concept': 'Q838948'}, 'P495', 'Q865']
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u property:P495 resource:Q17 . ?u rdf:type ontology:Q838948 . ?u property:P495 resource:Q865 . ?u rdf:type ontology:Q838948 }
The Iron Superman Yi Yi: A One and a Two
2
action count
action intersection
action filter_type
action find_reverse
entity Japan
relation country of origin
type work of art
action filter_type
action find_reverse
entity Taiwan
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'Japan'] [{'concept': 'work of art'}, 'country of origin', 'Taiwan']
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u property:country_of_origin resource:Japan . ?u rdf:type ontology:work_of_art . ?u property:country_of_origin resource:Taiwan . ?u rdf:type ontology:work_of_art }
[]