Simple Question (Direct)
Simple Question
Q7615743
P26
Q502895
USER
Which person is married to Stewart Castledine ?
(Q7615743,P26,c(Q502895))
action filter_type
action find
entity Q7615743
relation P26
type Q502895
['Q7615743', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q7615743 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Stewart Castledine
action filter_type
action find
entity Stewart Castledine
relation spouse
type common name
['Stewart Castledine', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Stewart_Castledine property:spouse ?u . ?u rdf:type ontology:common_name }
[]
common name
Q6698171
SYSTEM
Lucy Alexander
Q6698171
(Q7615743,P26,c(Q502895))
action filter_type
action find
entity Q7615743
relation P26
type Q502895
[ANSWER] is married to Stewart Castledine
['Q7615743', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q7615743 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Lucy Alexander
Lucy Alexander is married to Stewart Castledine
Lucy Alexander
action filter_type
action find
entity Stewart Castledine
relation spouse
type common name
['Stewart Castledine', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Stewart_Castledine property:spouse ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7615743
P19
Q123705
USER
Where was Stewart Castledine born ?
(Q7615743,P19,c(Q123705))
action filter_type
action find
entity Q7615743
relation P19
type Q123705
['Q7615743', 'P19', {'concept': 'Q123705'}]
SELECT DISTINCT ?g WHERE { resource:Q7615743 property:P19 ?g . ?g rdf:type ontology:Q123705 }
Stewart Castledine
action filter_type
action find
entity Stewart Castledine
relation place of birth
type neighborhood
['Stewart Castledine', 'place of birth', {'concept': 'neighborhood'}]
SELECT DISTINCT ?g WHERE { resource:Stewart_Castledine property:place_of_birth ?g . ?g rdf:type ontology:neighborhood }
[]
neighborhood
Q2166359
SYSTEM
Wandsworth
Q2166359
(Q7615743,P19,c(Q123705))
action filter_type
action find
entity Q7615743
relation P19
type Q123705
Stewart Castledine was born in [ANSWER]
['Q7615743', 'P19', {'concept': 'Q123705'}]
SELECT DISTINCT ?g WHERE { resource:Q7615743 property:P19 ?g . ?g rdf:type ontology:Q123705 }
Wandsworth
Stewart Castledine was born in Wandsworth
Wandsworth
action filter_type
action find
entity Stewart Castledine
relation place of birth
type neighborhood
['Stewart Castledine', 'place of birth', {'concept': 'neighborhood'}]
SELECT DISTINCT ?g WHERE { resource:Stewart_Castledine property:place_of_birth ?g . ?g rdf:type ontology:neighborhood }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7615743
P21
Q290
USER
Which sex does Stewart Castledine possess ?
(Q7615743,P21,c(Q290))
action filter_type
action find
entity Q7615743
relation P21
type Q290
['Q7615743', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q7615743 property:P21 ?h . ?h rdf:type ontology:Q290 }
Stewart Castledine
action filter_type
action find
entity Stewart Castledine
relation gender
type sex
['Stewart Castledine', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Stewart_Castledine property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7615743,P21,c(Q290))
action filter_type
action find
entity Q7615743
relation P21
type Q290
Stewart Castledine possesses un [ANSWER]
['Q7615743', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q7615743 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Stewart Castledine possesses un male
male
action filter_type
action find
entity Stewart Castledine
relation gender
type sex
['Stewart Castledine', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Stewart_Castledine property:gender ?h . ?h rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q16596424 Q7615743
P21
Q290
USER
Or Marie Stenqvist?
OR((Q7615743,P21,c(Q290)), (Q16596424,P21,c(Q290)))
action filter_type
action union
action find
entity Q7615743
relation P21
action find
entity Q16596424
relation P21
type Q290
{'OR': [['Q7615743', 'P21', {'concept': 'Q290'}], ['Q16596424', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?o WHERE { { ?y property:P21 ?o . VALUES ( ?y ) { ( resource:Q16596424 ) ( resource:Q7615743 ) } } . ?o rdf:type ontology:Q290 }
Marie Stenqvist Stewart Castledine
action filter_type
action union
action find
entity Stewart Castledine
relation gender
action find
entity Marie Stenqvist
relation gender
type sex
{'OR': [['Stewart Castledine', 'gender', {'concept': 'sex'}], ['Marie Stenqvist', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?o WHERE { { ?y property:gender ?o . VALUES ( ?y ) { ( resource:Marie_Stenqvist ) ( resource:Stewart_Castledine ) } } . ?o rdf:type ontology:sex }
[]
sex
Q6581097 Q6581072
SYSTEM
male, female
Q6581097 Q6581072
OR((Q7615743,P21,c(Q290)), (Q16596424,P21,c(Q290)))
action filter_type
action union
action find
entity Q7615743
relation P21
action find
entity Q16596424
relation P21
type Q290
[ANSWERS]
{'OR': [['Q7615743', 'P21', {'concept': 'Q290'}], ['Q16596424', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?o WHERE { { ?y property:P21 ?o . VALUES ( ?y ) { ( resource:Q16596424 ) ( resource:Q7615743 ) } } . ?o rdf:type ontology:Q290 }
male female
male female
action filter_type
action union
action find
entity Stewart Castledine
relation gender
action find
entity Marie Stenqvist
relation gender
type sex
{'OR': [['Stewart Castledine', 'gender', {'concept': 'sex'}], ['Marie Stenqvist', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?o WHERE { { ?y property:gender ?o . VALUES ( ?y ) { ( resource:Marie_Stenqvist ) ( resource:Stewart_Castledine ) } } . ?o rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P35
Q502895 Q7275 Q15617994
USER
Which people have the highest formal authority in exactly 2 states or administrative territories ?
(c(Q7275)|c(Q15617994),P35,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
value 2
[[{'concept': 'Q7275'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) ?f WHERE { ?q rdf:type ?t . VALUES ( ?t ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } } GROUP BY ?f } . FILTER ( ?o = 2 ) }
action equal
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
value 2
[[{'concept': 'state'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) ?f WHERE { ?q rdf:type ?t . VALUES ( ?t ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } . FILTER ( ?o = 2 ) }
[]
common name state designation for an administrative territorial entity
Q7747 Q36233 Q157
SYSTEM
Vladimir Putin, Václav Havel, François Hollande
Q157 Q152274 Q7747 Q147989 Q36233 Q43330 Q12950 Q324108 Q156806 Q189575 Q151944 Q559756 Q2667 Q229493
(c(Q7275)|c(Q15617994),P35,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
value 2
[ANSWERS] have the highest formal authority in exactly 2 states or administrative territories
[[{'concept': 'Q7275'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) ?f WHERE { ?q rdf:type ?t . VALUES ( ?t ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } } GROUP BY ?f } . FILTER ( ?o = 2 ) }
François Hollande Edvard Beneš Vladimir Putin Joaquín Balaguer Václav Havel Mikhail Saakashvili Alain Poher Ibrahim Boubacar Keïta Konstantinos Karamanlis Ion Iliescu Leonel Fernández el ladron Dragan Čović Paul von Hindenburg Nino Burjanadze
Vladimir Putin, Václav Havel and François Hollande have the highest formal authority in exactly 2 states or administrative territories
Vladimir Putin Václav Havel François Hollande
action equal
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
value 2
[[{'concept': 'state'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) ?f WHERE { ?q rdf:type ?t . VALUES ( ?t ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } . FILTER ( ?o = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16203274 Q7615743
P27
Q15617994
USER
Which administrative territories do Stewart Castledine or Adrienne Harun belong to ?
OR((Q7615743,P27,c(Q15617994)), (Q16203274,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7615743
relation P27
action find
entity Q16203274
relation P27
type Q15617994
{'OR': [['Q7615743', 'P27', {'concept': 'Q15617994'}], ['Q16203274', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { VALUES ( ?t ) { ( resource:Q7615743 ) ( resource:Q16203274 ) } . ?t property:P27 ?p } }
Adrienne Harun Stewart Castledine
action filter_type
action union
action find
entity Stewart Castledine
relation country of citizenship
action find
entity Adrienne Harun
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Stewart Castledine', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Adrienne Harun', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?t ) { ( resource:Stewart_Castledine ) ( resource:Adrienne_Harun ) } . ?t property:country_of_citizenship ?p } }
[]
designation for an administrative territorial entity
Q30 Q145
SYSTEM
United States of America, United Kingdom
Q30 Q145
OR((Q7615743,P27,c(Q15617994)), (Q16203274,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7615743
relation P27
action find
entity Q16203274
relation P27
type Q15617994
Stewart Castledine or Adrienne Harun belong to the [ANSWERS]
{'OR': [['Q7615743', 'P27', {'concept': 'Q15617994'}], ['Q16203274', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { VALUES ( ?t ) { ( resource:Q7615743 ) ( resource:Q16203274 ) } . ?t property:P27 ?p } }
United States of America United Kingdom
Stewart Castledine or Adrienne Harun belong to the United States of America and United Kingdom
United States of America United Kingdom
action filter_type
action union
action find
entity Stewart Castledine
relation country of citizenship
action find
entity Adrienne Harun
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Stewart Castledine', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Adrienne Harun', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?t ) { ( resource:Stewart_Castledine ) ( resource:Adrienne_Harun ) } . ?t property:country_of_citizenship ?p } }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories are the origins of less number of releases than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|More/Less|Single entity type|Clarification
Q145
SYSTEM
Did you mean United Kingdom ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean United Kingdom ?
United Kingdom
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
USER
No, I meant United States of America. Could you tell me the answer for that?
(c(Q2031291),P495,c(Q15617994))
Q30
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2031291),P495,c(Q15617994))
[ANSWERS] are the origins of less number of releases than that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy, Brazil and Georgia are the origins of less number of releases than that administrative territory
Italy Brazil Georgia
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q408
P710
Q1190554
USER
How many events were United States of America and Australia a participant of ?
(c(Q1190554),P710,Q30) (c(Q1190554),P710,Q408)
action count
action intersection
action filter_type
action find_reverse
entity Q30
relation P710
type Q1190554
action filter_type
action find_reverse
entity Q408
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q30'] [{'concept': 'Q1190554'}, 'P710', 'Q408']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:P710 resource:Q30 . ?o rdf:type ontology:Q1190554 . ?o rdf:type ontology:Q1190554 . ?o property:P710 resource:Q408 }
United States of America Australia
action count
action intersection
action filter_type
action find_reverse
entity United States of America
relation participant
type event
action filter_type
action find_reverse
entity Australia
relation participant
type event
[{'concept': 'event'}, 'participant', 'United States of America'] [{'concept': 'event'}, 'participant', 'Australia']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:participant resource:United_States_of_America . ?o rdf:type ontology:event . ?o rdf:type ontology:event . ?o property:participant resource:Australia }
[]
event
SYSTEM
4
Q4871421 Q1934591 Q218678 Q16470
(c(Q1190554),P710,Q30) (c(Q1190554),P710,Q408)
action count
action intersection
action filter_type
action find_reverse
entity Q30
relation P710
type Q1190554
action filter_type
action find_reverse
entity Q408
relation P710
type Q1190554
[ANSWER]
[{'concept': 'Q1190554'}, 'P710', 'Q30'] [{'concept': 'Q1190554'}, 'P710', 'Q408']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:P710 resource:Q30 . ?o rdf:type ontology:Q1190554 . ?o rdf:type ontology:Q1190554 . ?o property:P710 resource:Q408 }
Battle of Khaz Oruzgan Battle of North Borneo North African Campaign Normandy landings
4
action count
action intersection
action filter_type
action find_reverse
entity United States of America
relation participant
type event
action filter_type
action find_reverse
entity Australia
relation participant
type event
[{'concept': 'event'}, 'participant', 'United States of America'] [{'concept': 'event'}, 'participant', 'Australia']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:participant resource:United_States_of_America . ?o rdf:type ontology:event . ?o rdf:type ontology:event . ?o property:participant resource:Australia }
[]