Simple Question (Direct)
Simple Question
Q7599980
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Stanley Stroup ?
(Q7599980,P27,c(Q15617994))
action filter_type
action find
entity Q7599980
relation P27
type Q15617994
['Q7599980', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q7599980 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Stanley Stroup
action filter_type
action find
entity Stanley Stroup
relation country of citizenship
type designation for an administrative territorial entity
['Stanley Stroup', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Stanley_Stroup property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7599980,P27,c(Q15617994))
action filter_type
action find
entity Q7599980
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Stanley Stroup
['Q7599980', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q7599980 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
United States of America
United States of America is the country of citizenship of Stanley Stroup
United States of America
action filter_type
action find
entity Stanley Stroup
relation country of citizenship
type designation for an administrative territorial entity
['Stanley Stroup', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Stanley_Stroup property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7599980
P21
Q290
USER
Which sex does that person have ?
(Q30,P21,c(Q290))
action filter_type
action find
entity Q7599980
relation P21
type Q290
['Q30', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q7599980 property:P21 ?j . ?j rdf:type ontology:Q290 }
Stanley Stroup
action filter_type
action find
entity Stanley Stroup
relation gender
type sex
['United States of America', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Stanley_Stroup property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q30,P21,c(Q290))
action filter_type
action find
entity Q7599980
relation P21
type Q290
That person has a [ANSWER]
['Q30', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q7599980 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Stanley Stroup
relation gender
type sex
['United States of America', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Stanley_Stroup property:gender ?j . ?j rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q17230839
P21
Q502895
USER
Is Hideo Watanabe a that sex ?
(Q17230839,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q17230839
relation P21
['Q17230839', 'P21', 'Q6581097']
ASK WHERE { resource:Q17230839 property:P21 resource:Q6581097 }
male Hideo Watanabe
action is_in
entity male
action find
entity Hideo Watanabe
relation gender
['Hideo Watanabe', 'gender', 'male']
ASK WHERE { resource:Hideo_Watanabe property:gender resource:male }
[]
common name
SYSTEM
YES
(Q17230839,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q17230839
relation P21
[ANSWER]
['Q17230839', 'P21', 'Q6581097']
ASK WHERE { resource:Q17230839 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Hideo Watanabe
relation gender
['Hideo Watanabe', 'gender', 'male']
ASK WHERE { resource:Hideo_Watanabe property:gender resource:male }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q790
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with around the same number of administrative territories as Haiti ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q790
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:P530 ?d . ?d rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { ?p rdf:type ontology:Q15617994 . resource:Q790 property:P530 ?p } } . FILTER ( ?q = ?k ) }
Haiti
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Haiti
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Haiti property:diplomatic_relation ?p } } . FILTER ( ?q = ?k ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
152
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q790
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:P530 ?d . ?d rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { ?p rdf:type ontology:Q15617994 . resource:Q790 property:P530 ?p } } . FILTER ( ?q = ?k ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau 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 Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
152
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Haiti
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Haiti property:diplomatic_relation ?p } } . FILTER ( ?q = ?k ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q6232882 Q7599980
P102
Q7210356
USER
Which political organizations are Stanley Stroup and John Feikens a member of ?
AND((Q7599980,P102,c(Q7210356)), (Q6232882,P102,c(Q7210356)))
action filter_type
action intersection
action find
entity Q7599980
relation P102
action find
entity Q6232882
relation P102
type Q7210356
{'AND': [['Q7599980', 'P102', {'concept': 'Q7210356'}], ['Q6232882', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?d WHERE { resource:Q7599980 property:P102 ?d . resource:Q6232882 property:P102 ?d . ?d rdf:type ontology:Q7210356 }
John Feikens Stanley Stroup
action filter_type
action intersection
action find
entity Stanley Stroup
relation member of political party
action find
entity John Feikens
relation member of political party
type political organization
{'AND': [['Stanley Stroup', 'member of political party', {'concept': 'political organization'}], ['John Feikens', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?d WHERE { resource:Stanley_Stroup property:member_of_political_party ?d . resource:John_Feikens property:member_of_political_party ?d . ?d rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
AND((Q7599980,P102,c(Q7210356)), (Q6232882,P102,c(Q7210356)))
action filter_type
action intersection
action find
entity Q7599980
relation P102
action find
entity Q6232882
relation P102
type Q7210356
The [ANSWER] is Stanley Stroup and John Feikens a member of
{'AND': [['Q7599980', 'P102', {'concept': 'Q7210356'}], ['Q6232882', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?d WHERE { resource:Q7599980 property:P102 ?d . resource:Q6232882 property:P102 ?d . ?d rdf:type ontology:Q7210356 }
Republican Party
The Republican Party is Stanley Stroup and John Feikens a member of
Republican Party
action filter_type
action intersection
action find
entity Stanley Stroup
relation member of political party
action find
entity John Feikens
relation member of political party
type political organization
{'AND': [['Stanley Stroup', 'member of political party', {'concept': 'political organization'}], ['John Feikens', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?d WHERE { resource:Stanley_Stroup property:member_of_political_party ?d . resource:John_Feikens property:member_of_political_party ?d . ?d rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29468
P462
Q1075
USER
Which color is associated with that political organization ?
(Q29468,P462,c(Q1075))
action filter_type
action find
entity Q29468
relation P462
type Q1075
['Q29468', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?m WHERE { resource:Q29468 property:P462 ?m . ?m rdf:type ontology:Q1075 }
Republican Party
action filter_type
action find
entity Republican Party
relation color
type color
['Republican Party', 'color', {'concept': 'color'}]
SELECT DISTINCT ?m WHERE { resource:Republican_Party property:color ?m . ?m rdf:type ontology:color }
[]
color
Q3142
SYSTEM
red
Q3142
(Q29468,P462,c(Q1075))
action filter_type
action find
entity Q29468
relation P462
type Q1075
[ANSWER] is associated with that political organization
['Q29468', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?m WHERE { resource:Q29468 property:P462 ?m . ?m rdf:type ontology:Q1075 }
red
Red is associated with that political organization
red
action filter_type
action find
entity Republican Party
relation color
type color
['Republican Party', 'color', {'concept': 'color'}]
SELECT DISTINCT ?m WHERE { resource:Republican_Party property:color ?m . ?m rdf:type ontology:color }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2299910 Q29468
P488 P26
Q502895
USER
Which people chaired Republican Party or are the spouses of William Kissam Vanderbilt II ?
OR((Q29468,P488,c(Q502895)), (Q2299910,P26,c(Q502895)))
action filter_type
action union
action find
entity Q29468
relation P488
action find
entity Q2299910
relation P26
type Q502895
{'OR': [['Q29468', 'P488', {'concept': 'Q502895'}], ['Q2299910', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q29468 property:P488 ?l } UNION { resource:Q2299910 property:P26 ?l } } . ?l rdf:type ontology:Q502895 }
William Kissam Vanderbilt II Republican Party
action filter_type
action union
action find
entity Republican Party
relation chairperson
action find
entity William Kissam Vanderbilt II
relation spouse
type common name
{'OR': [['Republican Party', 'chairperson', {'concept': 'common name'}], ['William Kissam Vanderbilt II', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Republican_Party property:chairperson ?l } UNION { resource:William_Kissam_Vanderbilt_II property:spouse ?l } } . ?l rdf:type ontology:common_name }
[]
common name
Q1357640 Q1313954
SYSTEM
Reince Priebus, Virginia Fair Vanderbilt
Q1357640 Q1313954
OR((Q29468,P488,c(Q502895)), (Q2299910,P26,c(Q502895)))
action filter_type
action union
action find
entity Q29468
relation P488
action find
entity Q2299910
relation P26
type Q502895
[ANSWERS] chaired Republican Party or are the spouses of William Kissam Vanderbilt II
{'OR': [['Q29468', 'P488', {'concept': 'Q502895'}], ['Q2299910', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q29468 property:P488 ?l } UNION { resource:Q2299910 property:P26 ?l } } . ?l rdf:type ontology:Q502895 }
Reince Priebus Virginia Fair Vanderbilt
Reince Priebus and Virginia Fair Vanderbilt chaired Republican Party or are the spouses of William Kissam Vanderbilt II
Reince Priebus Virginia Fair Vanderbilt
action filter_type
action union
action find
entity Republican Party
relation chairperson
action find
entity William Kissam Vanderbilt II
relation spouse
type common name
{'OR': [['Republican Party', 'chairperson', {'concept': 'common name'}], ['William Kissam Vanderbilt II', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Republican_Party property:chairperson ?l } UNION { resource:William_Kissam_Vanderbilt_II property:spouse ?l } } . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1313954
P25
Q502895
USER
Which person has Virginia Fair Vanderbilt as mom ?
(c(Q502895),P25,Q1313954)
action filter_type
action find_reverse
entity Q1313954
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q1313954']
SELECT DISTINCT ?t WHERE { ?t property:P25 resource:Q1313954 . ?t rdf:type ontology:Q502895 }
Virginia Fair Vanderbilt
action filter_type
action find_reverse
entity Virginia Fair Vanderbilt
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Virginia Fair Vanderbilt']
SELECT DISTINCT ?t WHERE { ?t property:mother resource:Virginia_Fair_Vanderbilt . ?t rdf:type ontology:common_name }
[]
common name
Q6938684
SYSTEM
Muriel Vanderbilt
Q6938684
(c(Q502895),P25,Q1313954)
action filter_type
action find_reverse
entity Q1313954
relation P25
type Q502895
[ANSWER] has Virginia Fair Vanderbilt as mom
[{'concept': 'Q502895'}, 'P25', 'Q1313954']
SELECT DISTINCT ?t WHERE { ?t property:P25 resource:Q1313954 . ?t rdf:type ontology:Q502895 }
Muriel Vanderbilt
Muriel Vanderbilt has Virginia Fair Vanderbilt as mom
Muriel Vanderbilt
action filter_type
action find_reverse
entity Virginia Fair Vanderbilt
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Virginia Fair Vanderbilt']
SELECT DISTINCT ?t WHERE { ?t property:mother resource:Virginia_Fair_Vanderbilt . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6938684
P40
Q502895
USER
Who have that one as an offspring ?
(c(Q502895),P40,Q6938684)
action filter_type
action find_reverse
entity Q6938684
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q6938684']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P40 resource:Q6938684 }
Muriel Vanderbilt
action filter_type
action find_reverse
entity Muriel Vanderbilt
relation child
type common name
[{'concept': 'common name'}, 'child', 'Muriel Vanderbilt']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:child resource:Muriel_Vanderbilt }
[]
common name
Q1313954 Q2299910
SYSTEM
Virginia Fair Vanderbilt, William Kissam Vanderbilt II
Q1313954 Q2299910
(c(Q502895),P40,Q6938684)
action filter_type
action find_reverse
entity Q6938684
relation P40
type Q502895
[ANSWERS] have that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q6938684']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P40 resource:Q6938684 }
Virginia Fair Vanderbilt William Kissam Vanderbilt II
Virginia Fair Vanderbilt and William Kissam Vanderbilt II have that one as an offspring
Virginia Fair Vanderbilt William Kissam Vanderbilt II
action filter_type
action find_reverse
entity Muriel Vanderbilt
relation child
type common name
[{'concept': 'common name'}, 'child', 'Muriel Vanderbilt']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:child resource:Muriel_Vanderbilt }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P47
Q15617994
USER
Which administrative territories share border with United States of America ?
(Q30,P47,c(Q15617994))
action filter_type
action find
entity Q30
relation P47
type Q15617994
['Q30', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q30 property:P47 ?n . ?n rdf:type ontology:Q15617994 }
United States of America
action filter_type
action find
entity United States of America
relation shares border with
type designation for an administrative territorial entity
['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:United_States_of_America property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q17 Q96
SYSTEM
Russia, Japan, Mexico
Q702 Q804 Q159 Q96 Q17 Q786 Q241 Q683 Q710 Q678 Q717 Q790
(Q30,P47,c(Q15617994))
action filter_type
action find
entity Q30
relation P47
type Q15617994
[ANSWERS] share border with United States of America
['Q30', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q30 property:P47 ?n . ?n rdf:type ontology:Q15617994 }
Federated States of Micronesia Panama Russia Mexico Japan Dominican Republic Cuba Samoa Kiribati Tonga Venezuela Haiti
Russia, Japan and Mexico share border with United States of America
Russia Japan Mexico
action filter_type
action find
entity United States of America
relation shares border with
type designation for an administrative territorial entity
['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:United_States_of_America property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]