Simple Question (Direct)
Simple Question
Q4965542
P641
Q349
USER
Which sport did Brian Visser participate in ?
(Q4965542,P641,c(Q349))
action filter_type
action find
entity Q4965542
relation P641
type Q349
['Q4965542', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?t WHERE { resource:Q4965542 property:P641 ?t . ?t rdf:type ontology:Q349 }
Brian Visser
action filter_type
action find
entity Brian Visser
relation sport
type sport
['Brian Visser', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?t WHERE { resource:Brian_Visser property:sport ?t . ?t rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q4965542,P641,c(Q349))
action filter_type
action find
entity Q4965542
relation P641
type Q349
Brian Visser participated in [ANSWER]
['Q4965542', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?t WHERE { resource:Q4965542 property:P641 ?t . ?t rdf:type ontology:Q349 }
association football
Brian Visser participated in association football
association football
action filter_type
action find
entity Brian Visser
relation sport
type sport
['Brian Visser', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?t WHERE { resource:Brian_Visser property:sport ?t . ?t rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4965542
P54
Q12973014
USER
What is that person a member of ?
(Q2736,P54,c(Q12973014))
action filter_type
action find
entity Q4965542
relation P54
type Q12973014
['Q2736', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?t WHERE { resource:Q4965542 property:P54 ?t . ?t rdf:type ontology:Q12973014 }
Brian Visser
action filter_type
action find
entity Brian Visser
relation member of sports team
type sports team
['association football', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?t WHERE { resource:Brian_Visser property:member_of_sports_team ?t . ?t rdf:type ontology:sports_team }
[]
sports team
Q16025275
SYSTEM
Portland Timbers
Q16025275
(Q2736,P54,c(Q12973014))
action filter_type
action find
entity Q4965542
relation P54
type Q12973014
That person a member of is the [ANSWER]
['Q2736', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?t WHERE { resource:Q4965542 property:P54 ?t . ?t rdf:type ontology:Q12973014 }
Portland Timbers
That person a member of is the Portland Timbers
Portland Timbers
action filter_type
action find
entity Brian Visser
relation member of sports team
type sports team
['association football', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?t WHERE { resource:Brian_Visser property:member_of_sports_team ?t . ?t rdf:type ontology:sports_team }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q16025275 Q2008852 Q30
P17
Q15617994
USER
Is that sports team present in Ober-Ostern and United States of America ?
(Q16025275,P17,Q2008852) (Q16025275,P17,Q30)
action is_in
entity Q16025275
action intersection
action find_reverse
entity Q2008852
relation P17
action find_reverse
entity Q30
relation P17
['Q16025275', 'P17', 'Q2008852'] ['Q16025275', 'P17', 'Q30']
ASK WHERE { resource:Q16025275 property:P17 resource:Q2008852 . resource:Q16025275 property:P17 resource:Q30 }
Portland Timbers Ober-Ostern United States of America
action is_in
entity Portland Timbers
action intersection
action find_reverse
entity Ober-Ostern
relation country
action find_reverse
entity United States of America
relation country
['Portland Timbers', 'country', 'Ober-Ostern'] ['Portland Timbers', 'country', 'United States of America']
ASK WHERE { resource:Portland_Timbers property:country resource:Ober-Ostern . resource:Portland_Timbers property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q16025275,P17,Q2008852) (Q16025275,P17,Q30)
action is_in
entity Q16025275
action intersection
action find_reverse
entity Q2008852
relation P17
action find_reverse
entity Q30
relation P17
[ANSWER]
['Q16025275', 'P17', 'Q2008852'] ['Q16025275', 'P17', 'Q30']
ASK WHERE { resource:Q16025275 property:P17 resource:Q2008852 . resource:Q16025275 property:P17 resource:Q30 }
NO and YES respectively
action is_in
entity Portland Timbers
action intersection
action find_reverse
entity Ober-Ostern
relation country
action find_reverse
entity United States of America
relation country
['Portland Timbers', 'country', 'Ober-Ostern'] ['Portland Timbers', 'country', 'United States of America']
ASK WHERE { resource:Portland_Timbers property:country resource:Ober-Ostern . resource:Portland_Timbers property:country resource:United_States_of_America }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P366
Q349 Q2235308 Q8205328
USER
How many sports are considered as the main functionality of around 1 ship types and artefacts ?
(c(Q2235308)|c(Q8205328),P366,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
action find_reverse_tuple_counts
relation P366
type Q349
type Q8205328
value 1
[[{'concept': 'Q2235308'}, {'concept': 'Q8205328'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?r WHERE { VALUES ( ?n ) { ( ontology:Q2235308 ) ( ontology:Q8205328 ) } . ?w rdf:type ?n } GROUP BY ?r } . FILTER ( ?z = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type sport
type ship type
action find_reverse_tuple_counts
relation use
type sport
type artefact
value 1
[[{'concept': 'ship type'}, {'concept': 'artefact'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?r WHERE { VALUES ( ?n ) { ( ontology:ship_type ) ( ontology:artefact ) } . ?w rdf:type ?n } GROUP BY ?r } . FILTER ( ?z = 1 ) }
[]
sport ship type artefact
SYSTEM
3
Q14300548 Q108429 Q61065
(c(Q2235308)|c(Q8205328),P366,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
action find_reverse_tuple_counts
relation P366
type Q349
type Q8205328
value 1
[ANSWER]
[[{'concept': 'Q2235308'}, {'concept': 'Q8205328'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?r WHERE { VALUES ( ?n ) { ( ontology:Q2235308 ) ( ontology:Q8205328 ) } . ?w rdf:type ?n } GROUP BY ?r } . FILTER ( ?z = 1 ) }
skating archery water sport
3
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type sport
type ship type
action find_reverse_tuple_counts
relation use
type sport
type artefact
value 1
[[{'concept': 'ship type'}, {'concept': 'artefact'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?r WHERE { VALUES ( ?n ) { ( ontology:ship_type ) ( ontology:artefact ) } . ?w rdf:type ?n } GROUP BY ?r } . FILTER ( ?z = 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q295233 Q16025275
P27 P17
Q15617994
USER
Which administrative territories do Portland Timbers belong to and do John Leguizamo belong to ?
AND((Q16025275,P17,c(Q15617994)), (Q295233,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q16025275
relation P17
action find
entity Q295233
relation P27
type Q15617994
{'AND': [['Q16025275', 'P17', {'concept': 'Q15617994'}], ['Q295233', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { resource:Q16025275 property:P17 ?x . resource:Q295233 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
John Leguizamo Portland Timbers
action filter_type
action intersection
action find
entity Portland Timbers
relation country
action find
entity John Leguizamo
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Portland Timbers', 'country', {'concept': 'designation for an administrative territorial entity'}], ['John Leguizamo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { resource:Portland_Timbers property:country ?x . resource:John_Leguizamo property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q16025275,P17,c(Q15617994)), (Q295233,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q16025275
relation P17
action find
entity Q295233
relation P27
type Q15617994
Portland Timbers belong to the [ANSWER]
{'AND': [['Q16025275', 'P17', {'concept': 'Q15617994'}], ['Q295233', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { resource:Q16025275 property:P17 ?x . resource:Q295233 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
United States of America
Portland Timbers belong to the United States of America
United States of America
action filter_type
action intersection
action find
entity Portland Timbers
relation country
action find
entity John Leguizamo
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Portland Timbers', 'country', {'concept': 'designation for an administrative territorial entity'}], ['John Leguizamo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { resource:Portland_Timbers property:country ?x . resource:John_Leguizamo property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q754
P706
Q15324 Q473972 Q15617994
USER
How many administrative territories are located in greater number of bodies of water or protected areas than Trinidad and Tobago ?
(c(Q15617994),P706,c(Q15324)|c(Q473972))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q473972
action count
action filter_multi_types
action find
entity Q754
relation P706
type Q15324
type Q473972
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q473972'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?h WHERE { { ?h property:P706 ?w . ?w rdf:type ontology:Q473972 . ?h rdf:type ontology:Q15617994 } UNION { ?h property:P706 ?w . ?w rdf:type ontology:Q15324 . ?h rdf:type ontology:Q15617994 } } GROUP BY ?h } . FILTER ( ?y > ?m ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { resource:Q754 property:P706 ?e . { { ?e rdf:type ontology:Q15324 } UNION { ?e rdf:type ontology:Q473972 } } } } }
Trinidad and Tobago
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type protected area
action count
action filter_multi_types
action find
entity Trinidad and Tobago
relation located on terrain feature
type body of water
type protected area
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'protected area'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?h WHERE { { ?h property:located_on_terrain_feature ?w . ?w rdf:type ontology:protected_area . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?h property:located_on_terrain_feature ?w . ?w rdf:type ontology:body_of_water . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?h } . FILTER ( ?y > ?m ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { resource:Trinidad_and_Tobago property:located_on_terrain_feature ?e . { { ?e rdf:type ontology:body_of_water } UNION { ?e rdf:type ontology:protected_area } } } } }
[]
body of water protected area designation for an administrative territorial entity
SYSTEM
25
Q24846 Q3172 Q25129 Q496389 Q128230 Q204529 Q3146 Q4770750 Q20836 Q20837 Q769680 Q192129 Q3038 Q25130 Q25135 Q3218 Q25125 Q29931 Q25082 Q3193 Q23968 Q489865 Q72432 Q20754 Q55416
(c(Q15617994),P706,c(Q15324)|c(Q473972))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q473972
action count
action filter_multi_types
action find
entity Q754
relation P706
type Q15324
type Q473972
[ANSWER]
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q473972'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?h WHERE { { ?h property:P706 ?w . ?w rdf:type ontology:Q473972 . ?h rdf:type ontology:Q15617994 } UNION { ?h property:P706 ?w . ?w rdf:type ontology:Q15324 . ?h rdf:type ontology:Q15617994 } } GROUP BY ?h } . FILTER ( ?y > ?m ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { resource:Q754 property:P706 ?e . { { ?e rdf:type ontology:Q15324 } UNION { ?e rdf:type ontology:Q473972 } } } } }
Juist Fehmarn Langeoog Lipari Ventotene Zingst Pellworm Ansons Bay Hallig Hooge Fanø Bornholm Ustica Helgoland Spiekeroog Wangerooge Insel Hiddensee Baltrum Langeneß Borkum Ostseebad Insel Poel Norderney Isola delle Femmine Procida Gröde Chioggia
25
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type protected area
action count
action filter_multi_types
action find
entity Trinidad and Tobago
relation located on terrain feature
type body of water
type protected area
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'protected area'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?h WHERE { { ?h property:located_on_terrain_feature ?w . ?w rdf:type ontology:protected_area . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?h property:located_on_terrain_feature ?w . ?w rdf:type ontology:body_of_water . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?h } . FILTER ( ?y > ?m ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { resource:Trinidad_and_Tobago property:located_on_terrain_feature ?e . { { ?e rdf:type ontology:body_of_water } UNION { ?e rdf:type ontology:protected_area } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q625747
P706
Q15324 Q473972 Q15617994
USER
And how about Rangsdorf?
(c(Q15617994),P706,c(Q15324)|c(Q473972))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q473972
action count
action filter_multi_types
action find
entity Q625747
relation P706
type Q15324
type Q473972
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q473972'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?f ) WHERE { ?z rdf:type ?b . VALUES ( ?b ) { ( ontology:Q15324 ) ( ontology:Q473972 ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?x rdf:type ontology:Q15324 } UNION { ?x rdf:type ontology:Q473972 } } . resource:Q625747 property:P706 ?x } } . FILTER ( ?f > ?w ) }
Rangsdorf
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type protected area
action count
action filter_multi_types
action find
entity Rangsdorf
relation located on terrain feature
type body of water
type protected area
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'protected area'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?f ) WHERE { ?z rdf:type ?b . VALUES ( ?b ) { ( ontology:body_of_water ) ( ontology:protected_area ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?x rdf:type ontology:body_of_water } UNION { ?x rdf:type ontology:protected_area } } . resource:Rangsdorf property:located_on_terrain_feature ?x } } . FILTER ( ?f > ?w ) }
[]
body of water protected area designation for an administrative territorial entity
SYSTEM
25
Q24846 Q3172 Q25129 Q496389 Q128230 Q204529 Q3146 Q4770750 Q20836 Q20837 Q769680 Q192129 Q3038 Q25130 Q25135 Q3218 Q25125 Q29931 Q25082 Q3193 Q23968 Q489865 Q72432 Q20754 Q55416
(c(Q15617994),P706,c(Q15324)|c(Q473972))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q473972
action count
action filter_multi_types
action find
entity Q625747
relation P706
type Q15324
type Q473972
[ANSWER]
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q473972'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?f ) WHERE { ?z rdf:type ?b . VALUES ( ?b ) { ( ontology:Q15324 ) ( ontology:Q473972 ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?x rdf:type ontology:Q15324 } UNION { ?x rdf:type ontology:Q473972 } } . resource:Q625747 property:P706 ?x } } . FILTER ( ?f > ?w ) }
Juist Fehmarn Langeoog Lipari Ventotene Zingst Pellworm Ansons Bay Hallig Hooge Fanø Bornholm Ustica Helgoland Spiekeroog Wangerooge Insel Hiddensee Baltrum Langeneß Borkum Ostseebad Insel Poel Norderney Isola delle Femmine Procida Gröde Chioggia
25
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type protected area
action count
action filter_multi_types
action find
entity Rangsdorf
relation located on terrain feature
type body of water
type protected area
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'protected area'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?f ) WHERE { ?z rdf:type ?b . VALUES ( ?b ) { ( ontology:body_of_water ) ( ontology:protected_area ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?x rdf:type ontology:body_of_water } UNION { ?x rdf:type ontology:protected_area } } . resource:Rangsdorf property:located_on_terrain_feature ?x } } . FILTER ( ?f > ?w ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16485772 Q295233
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of John Leguizamo or Afonso Celso Ribeiro de Castro ?
OR((Q295233,P27,c(Q15617994)), (Q16485772,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q295233
relation P27
action find
entity Q16485772
relation P27
type Q15617994
{'OR': [['Q295233', 'P27', {'concept': 'Q15617994'}], ['Q16485772', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q295233 property:P27 ?h } UNION { resource:Q16485772 property:P27 ?h } } . ?h rdf:type ontology:Q15617994 }
Afonso Celso Ribeiro de Castro John Leguizamo
action filter_type
action union
action find
entity John Leguizamo
relation country of citizenship
action find
entity Afonso Celso Ribeiro de Castro
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['John Leguizamo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Afonso Celso Ribeiro de Castro', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:John_Leguizamo property:country_of_citizenship ?h } UNION { resource:Afonso_Celso_Ribeiro_de_Castro property:country_of_citizenship ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q739 Q155 Q30
SYSTEM
Colombia, Brazil, United States of America
Q739 Q155 Q30
OR((Q295233,P27,c(Q15617994)), (Q16485772,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q295233
relation P27
action find
entity Q16485772
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of John Leguizamo or Afonso Celso Ribeiro de Castro
{'OR': [['Q295233', 'P27', {'concept': 'Q15617994'}], ['Q16485772', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q295233 property:P27 ?h } UNION { resource:Q16485772 property:P27 ?h } } . ?h rdf:type ontology:Q15617994 }
Colombia Brazil United States of America
Colombia, Brazil and United States of America are the countries of citizenship of John Leguizamo or Afonso Celso Ribeiro de Castro
Colombia Brazil United States of America
action filter_type
action union
action find
entity John Leguizamo
relation country of citizenship
action find
entity Afonso Celso Ribeiro de Castro
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['John Leguizamo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Afonso Celso Ribeiro de Castro', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:John_Leguizamo property:country_of_citizenship ?h } UNION { resource:Afonso_Celso_Ribeiro_de_Castro property:country_of_citizenship ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q739
P1376
Q13220204
USER
What is the capital of that administrative territory ?
(c(Q13220204),P1376,Q739)
action filter_type
action find_reverse
entity Q739
relation P1376
type Q13220204
[{'concept': 'Q13220204'}, 'P1376', 'Q739']
SELECT DISTINCT ?r WHERE { ?r property:P1376 resource:Q739 . ?r rdf:type ontology:Q13220204 }
Colombia
action filter_type
action find_reverse
entity Colombia
relation capital of
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'capital of', 'Colombia']
SELECT DISTINCT ?r WHERE { ?r property:capital_of resource:Colombia . ?r rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Clarification for simple ques.
Q30
SYSTEM
Did you mean United States of America ?
Q739 Q155 Q30
(c(Q13220204),P1376,Q739) (c(Q13220204),P1376,Q155) (c(Q13220204),P1376,Q30)
[ANSWER]
[{'concept': 'Q13220204'}, 'P1376', 'Q739'] [{'concept': 'Q13220204'}, 'P1376', 'Q155'] [{'concept': 'Q13220204'}, 'P1376', 'Q30']
SELECT DISTINCT ?r WHERE { ?r property:P1376 resource:Q739 . ?r rdf:type ontology:Q13220204 }
Colombia Brazil United States of America
Did you mean United States of America ?
United States of America
[{'concept': 'second-level administrative country subdivision'}, 'capital of', 'Colombia'] [{'concept': 'second-level administrative country subdivision'}, 'capital of', 'Brazil'] [{'concept': 'second-level administrative country subdivision'}, 'capital of', 'United States of America']
SELECT DISTINCT ?r WHERE { ?r property:capital_of resource:Colombia . ?r rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
USER
No, I meant Colombia. Could you tell me the answer for that?
(c(Q13220204),P1376,Q739)
Q739
[{'concept': 'Q13220204'}, 'P1376', 'Q739']
[{'concept': 'second-level administrative country subdivision'}, 'capital of', 'Colombia']
[]
Q2841
SYSTEM
Bogotá
Q2841
(c(Q13220204),P1376,Q739)
action filter_type
action find_reverse
entity Q739
relation P1376
type Q13220204
The capital of that administrative territory is [ANSWER]
[{'concept': 'Q13220204'}, 'P1376', 'Q739']
SELECT DISTINCT ?r WHERE { ?r property:P1376 resource:Q739 . ?r rdf:type ontology:Q13220204 }
Bogotá
The capital of that administrative territory is Bogotá
Bogotá
action filter_type
action find_reverse
entity Colombia
relation capital of
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'capital of', 'Colombia']
SELECT DISTINCT ?r WHERE { ?r property:capital_of resource:Colombia . ?r rdf:type ontology:second-level_administrative_country_subdivision }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q17537312 Q30
P47 P17
Q15617994
USER
Which administrative territories are adjacent to United States of America or are Crooke's Farmhouse a part of ?
OR((Q30,P47,c(Q15617994)), (Q17537312,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P47
action find
entity Q17537312
relation P17
type Q15617994
{'OR': [['Q30', 'P47', {'concept': 'Q15617994'}], ['Q17537312', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q30 property:P47 ?l } UNION { resource:Q17537312 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
Crooke's Farmhouse United States of America
action filter_type
action union
action find
entity United States of America
relation shares border with
action find
entity Crooke's Farmhouse
relation country
type designation for an administrative territorial entity
{'OR': [['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ["Crooke's Farmhouse", 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:United_States_of_America property:shares_border_with ?l } UNION { resource:Crooke's_Farmhouse property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q96 Q241 Q17 Q683 Q702 Q710 Q717 Q159 Q790
SYSTEM
Some of them are United Kingdom, Mexico, Cuba, Japan, Samoa, Federated States of Micronesia, Kiribati, Venezuela, Russia, Haiti
Q702 Q804 Q159 Q145 Q96 Q683 Q786 Q241 Q17 Q710 Q678 Q717 Q790
OR((Q30,P47,c(Q15617994)), (Q17537312,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P47
action find
entity Q17537312
relation P17
type Q15617994
[ANSWERS] are adjacent to United States of America or are Crooke's Farmhouse a part of
{'OR': [['Q30', 'P47', {'concept': 'Q15617994'}], ['Q17537312', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q30 property:P47 ?l } UNION { resource:Q17537312 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
Federated States of Micronesia Panama Russia United Kingdom Mexico Samoa Dominican Republic Cuba Japan Kiribati Tonga Venezuela Haiti
United Kingdom, Mexico, Cuba, Japan, Samoa, Federated States of Micronesia, Kiribati, Venezuela, Russia and Haiti are adjacent to United States of America or are Crooke's Farmhouse a part of
United Kingdom Mexico Cuba Japan Samoa Federated States of Micronesia Kiribati Venezuela Russia Haiti
action filter_type
action union
action find
entity United States of America
relation shares border with
action find
entity Crooke's Farmhouse
relation country
type designation for an administrative territorial entity
{'OR': [['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ["Crooke's Farmhouse", 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:United_States_of_America property:shares_border_with ?l } UNION { resource:Crooke's_Farmhouse property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]