Simple Question (Direct)
Simple Question
Q5528808
P102
Q7210356
USER
Which party does Gayle McKeachnie belong to ?
(Q5528808,P102,c(Q7210356))
action filter_type
action find
entity Q5528808
relation P102
type Q7210356
['Q5528808', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q5528808 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Gayle McKeachnie
action filter_type
action find
entity Gayle McKeachnie
relation member of political party
type political organization
['Gayle McKeachnie', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Gayle_McKeachnie property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q5528808,P102,c(Q7210356))
action filter_type
action find
entity Q5528808
relation P102
type Q7210356
Gayle McKeachnie belongs to [ANSWER]
['Q5528808', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q5528808 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Republican Party
Gayle McKeachnie belongs to Republican Party
Republican Party
action filter_type
action find
entity Gayle McKeachnie
relation member of political party
type political organization
['Gayle McKeachnie', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Gayle_McKeachnie property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5528808
P21
Q290
USER
What is the sex of that person ?
(Q29468,P21,c(Q290))
action filter_type
action find
entity Q5528808
relation P21
type Q290
['Q29468', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q5528808 property:P21 ?o . ?o rdf:type ontology:Q290 }
Gayle McKeachnie
action filter_type
action find
entity Gayle McKeachnie
relation gender
type sex
['Republican Party', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Gayle_McKeachnie property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q29468,P21,c(Q290))
action filter_type
action find
entity Q5528808
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q29468', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q5528808 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Gayle McKeachnie
relation gender
type sex
['Republican Party', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Gayle_McKeachnie property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5528808
P39
Q12737077
USER
What was the position for which that person was appointed ?
(Q6581097,P39,c(Q12737077))
action filter_type
action find
entity Q5528808
relation P39
type Q12737077
['Q6581097', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q5528808 property:P39 ?n . ?n rdf:type ontology:Q12737077 }
Gayle McKeachnie
action filter_type
action find
entity Gayle McKeachnie
relation position held
type occupation
['male', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Gayle_McKeachnie property:position_held ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q18810381
SYSTEM
member of the Utah House of Representatives
Q18810381
(Q6581097,P39,c(Q12737077))
action filter_type
action find
entity Q5528808
relation P39
type Q12737077
The [ANSWER]
['Q6581097', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q5528808 property:P39 ?n . ?n rdf:type ontology:Q12737077 }
member of the Utah House of Representatives
The member of the Utah House of Representatives
member of the Utah House of Representatives
action filter_type
action find
entity Gayle McKeachnie
relation position held
type occupation
['male', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Gayle_McKeachnie property:position_held ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5528808
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q18810381,P27,c(Q15617994))
action filter_type
action find
entity Q5528808
relation P27
type Q15617994
['Q18810381', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q5528808 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Gayle McKeachnie
action filter_type
action find
entity Gayle McKeachnie
relation country of citizenship
type designation for an administrative territorial entity
['member of the Utah House of Representatives', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Gayle_McKeachnie property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q18810381,P27,c(Q15617994))
action filter_type
action find
entity Q5528808
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q18810381', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q5528808 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
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 Gayle McKeachnie
relation country of citizenship
type designation for an administrative territorial entity
['member of the Utah House of Representatives', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Gayle_McKeachnie property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q532 Q3947
USER
Which administrative territories are atleast 2020 villages and houses present in ?
(c(Q532)|c(Q3947),P17,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q532
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3947
value 2020
[[{'concept': 'Q532'}, {'concept': 'Q3947'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?o >= 2020 ) . { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?o ) WHERE { { ?y property:P17 ?c . ?c rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q3947 } UNION { ?y property:P17 ?c . ?y rdf:type ontology:Q532 . ?c rdf:type ontology:Q15617994 } } GROUP BY ?c } }
action atleast
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type village
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type house
value 2020
[[{'concept': 'village'}, {'concept': 'house'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?o >= 2020 ) . { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?o ) WHERE { { ?y property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:house } UNION { ?y property:country ?c . ?y rdf:type ontology:village . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?c } }
[]
designation for an administrative territorial entity village house
Q145 Q219 Q30
SYSTEM
United Kingdom, Bulgaria, United States of America
Q145 Q219 Q30
(c(Q532)|c(Q3947),P17,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q532
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3947
value 2020
[ANSWERS]
[[{'concept': 'Q532'}, {'concept': 'Q3947'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?o >= 2020 ) . { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?o ) WHERE { { ?y property:P17 ?c . ?c rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q3947 } UNION { ?y property:P17 ?c . ?y rdf:type ontology:Q532 . ?c rdf:type ontology:Q15617994 } } GROUP BY ?c } }
United Kingdom Bulgaria United States of America
Which administrative territories are atleast 2020 villages and houses present in
United Kingdom Bulgaria United States of America
action atleast
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type village
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type house
value 2020
[[{'concept': 'village'}, {'concept': 'house'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?o >= 2020 ) . { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?o ) WHERE { { ?y property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:house } UNION { ?y property:country ?c . ?y rdf:type ontology:village . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?c } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q51952
P530
Q15617994
USER
Do San Marco in Lamis have diplomatic associations with those ones ?
(Q51952,P530,Q145) (Q51952,P530,Q219) (Q51952,P530,Q30)
action is_in
entity prev_answer
action find
entity Q51952
relation P530
['Q51952', 'P530', 'Q145'] ['Q51952', 'P530', 'Q219'] ['Q51952', 'P530', 'Q30']
ASK WHERE { resource:Q51952 property:P530 ?j . VALUES ( ?j ) { ( resource:Q145 ) ( resource:Q219 ) ( resource:Q30 ) } }
San Marco in Lamis
action is_in
entity prev_answer
action find
entity San Marco in Lamis
relation diplomatic relation
['San Marco in Lamis', 'diplomatic relation', 'United Kingdom'] ['San Marco in Lamis', 'diplomatic relation', 'Bulgaria'] ['San Marco in Lamis', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:San_Marco_in_Lamis property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:United_Kingdom ) ( resource:Bulgaria ) ( resource:United_States_of_America ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q51952,P530,Q145) (Q51952,P530,Q219) (Q51952,P530,Q30)
action is_in
entity prev_answer
action find
entity Q51952
relation P530
[ANSWER]
['Q51952', 'P530', 'Q145'] ['Q51952', 'P530', 'Q219'] ['Q51952', 'P530', 'Q30']
ASK WHERE { resource:Q51952 property:P530 ?j . VALUES ( ?j ) { ( resource:Q145 ) ( resource:Q219 ) ( resource:Q30 ) } }
No
action is_in
entity prev_answer
action find
entity San Marco in Lamis
relation diplomatic relation
['San Marco in Lamis', 'diplomatic relation', 'United Kingdom'] ['San Marco in Lamis', 'diplomatic relation', 'Bulgaria'] ['San Marco in Lamis', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:San_Marco_in_Lamis property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:United_Kingdom ) ( resource:Bulgaria ) ( resource:United_States_of_America ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q145 Q81431
P530
Q15617994
USER
Does Brigachtal have diplomatic relationships with United Kingdom ?
(Q145,P530,Q81431)
action is_in
entity Q81431
action find
entity Q145
relation P530
['Q145', 'P530', 'Q81431']
ASK WHERE { resource:Q145 property:P530 resource:Q81431 }
United Kingdom Brigachtal
action is_in
entity Brigachtal
action find
entity United Kingdom
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Brigachtal']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Brigachtal }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q145,P530,Q81431)
action is_in
entity Q81431
action find
entity Q145
relation P530
[ANSWER]
['Q145', 'P530', 'Q81431']
ASK WHERE { resource:Q145 property:P530 resource:Q81431 }
No
action is_in
entity Brigachtal
action find
entity United Kingdom
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Brigachtal']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Brigachtal }
[]