Simple Question (Direct)
Simple Question
Q3041697
P54
Q12973014
USER
Which sports teams are Dusty Baker a member of ?
(Q3041697,P54,c(Q12973014))
action filter_type
action find
entity Q3041697
relation P54
type Q12973014
['Q3041697', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?o WHERE { resource:Q3041697 property:P54 ?o . ?o rdf:type ontology:Q12973014 }
Dusty Baker
action filter_type
action find
entity Dusty Baker
relation member of sports team
type sports team
['Dusty Baker', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?o WHERE { resource:Dusty_Baker property:member_of_sports_team ?o . ?o rdf:type ontology:sports_team }
[]
sports team
Q461595 Q826751 Q308966
SYSTEM
Atlanta Braves, Cincinnati Reds, San Francisco Giants
Q246782 Q870447 Q826751 Q504339 Q308966 Q334634 Q461595
(Q3041697,P54,c(Q12973014))
action filter_type
action find
entity Q3041697
relation P54
type Q12973014
The [ANSWERS] are Dusty Baker a member of
['Q3041697', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?o WHERE { resource:Q3041697 property:P54 ?o . ?o rdf:type ontology:Q12973014 }
Chicago Cubs Tiburones de La Guaira Cincinnati Reds Oakland Athletics San Francisco Giants Los Angeles Dodgers Atlanta Braves
The Atlanta Braves, Cincinnati Reds and San Francisco Giants are Dusty Baker a member of
Atlanta Braves Cincinnati Reds San Francisco Giants
action filter_type
action find
entity Dusty Baker
relation member of sports team
type sports team
['Dusty Baker', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?o WHERE { resource:Dusty_Baker property:member_of_sports_team ?o . ?o rdf:type ontology:sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q826751
P1346
Q500834
USER
Which tournaments were Cincinnati Reds decalred as a victor of ?
(c(Q500834),P1346,Q826751)
action filter_type
action find_reverse
entity Q826751
relation P1346
type Q500834
[{'concept': 'Q500834'}, 'P1346', 'Q826751']
SELECT DISTINCT ?g WHERE { ?g property:P1346 resource:Q826751 . ?g rdf:type ontology:Q500834 }
Cincinnati Reds
action filter_type
action find_reverse
entity Cincinnati Reds
relation winner
type tournament
[{'concept': 'tournament'}, 'winner', 'Cincinnati Reds']
SELECT DISTINCT ?g WHERE { ?g property:winner resource:Cincinnati_Reds . ?g rdf:type ontology:tournament }
[]
tournament
Q4295898 Q4295899 Q4564790
SYSTEM
1976 World Series, 1975 World Series, 1940 World Series
Q4295898 Q4295899 Q4564790 Q1568575 Q846529
(c(Q500834),P1346,Q826751)
action filter_type
action find_reverse
entity Q826751
relation P1346
type Q500834
Cincinnati Reds were decalred as a victor of the [ANSWERS]
[{'concept': 'Q500834'}, 'P1346', 'Q826751']
SELECT DISTINCT ?g WHERE { ?g property:P1346 resource:Q826751 . ?g rdf:type ontology:Q500834 }
1976 World Series 1975 World Series 1940 World Series 1990 World Series 1919 World Series
Cincinnati Reds were decalred as a victor of the 1976 World Series, 1975 World Series and 1940 World Series
1976 World Series 1975 World Series 1940 World Series
action filter_type
action find_reverse
entity Cincinnati Reds
relation winner
type tournament
[{'concept': 'tournament'}, 'winner', 'Cincinnati Reds']
SELECT DISTINCT ?g WHERE { ?g property:winner resource:Cincinnati_Reds . ?g rdf:type ontology:tournament }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q826751
P127
Q502895
USER
Which people owned Cincinnati Reds ?
(Q826751,P127,c(Q502895))
action filter_type
action find
entity Q826751
relation P127
type Q502895
['Q826751', 'P127', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q826751 property:P127 ?c . ?c rdf:type ontology:Q502895 }
Cincinnati Reds
action filter_type
action find
entity Cincinnati Reds
relation owned by
type common name
['Cincinnati Reds', 'owned by', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Cincinnati_Reds property:owned_by ?c . ?c rdf:type ontology:common_name }
[]
common name
Q16228897 Q8020388
SYSTEM
James Williams, William Williams
Q16228897 Q8020388
(Q826751,P127,c(Q502895))
action filter_type
action find
entity Q826751
relation P127
type Q502895
[ANSWERS] owned Cincinnati Reds
['Q826751', 'P127', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q826751 property:P127 ?c . ?c rdf:type ontology:Q502895 }
James Williams William Williams
James Williams and William Williams owned Cincinnati Reds
James Williams William Williams
action filter_type
action find
entity Cincinnati Reds
relation owned by
type common name
['Cincinnati Reds', 'owned by', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Cincinnati_Reds property:owned_by ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q826751
P17
Q15617994
USER
Which administrative territory is Cincinnati Reds present in ?
(Q826751,P17,c(Q15617994))
action filter_type
action find
entity Q826751
relation P17
type Q15617994
['Q826751', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q826751 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Cincinnati Reds
action filter_type
action find
entity Cincinnati Reds
relation country
type designation for an administrative territorial entity
['Cincinnati Reds', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Cincinnati_Reds property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q826751,P17,c(Q15617994))
action filter_type
action find
entity Q826751
relation P17
type Q15617994
Cincinnati Reds is the [ANSWER]
['Q826751', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q826751 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
United States of America
Cincinnati Reds is the United States of America
United States of America
action filter_type
action find
entity Cincinnati Reds
relation country
type designation for an administrative territorial entity
['Cincinnati Reds', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Cincinnati_Reds property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q826751
P647
Q502895
USER
Which person drafted Cincinnati Reds ?
(c(Q502895),P647,Q826751)
action filter_type
action find_reverse
entity Q826751
relation P647
type Q502895
[{'concept': 'Q502895'}, 'P647', 'Q826751']
SELECT DISTINCT ?f WHERE { ?f property:P647 resource:Q826751 . ?f rdf:type ontology:Q502895 }
Cincinnati Reds
action filter_type
action find_reverse
entity Cincinnati Reds
relation drafted by
type common name
[{'concept': 'common name'}, 'drafted by', 'Cincinnati Reds']
SELECT DISTINCT ?f WHERE { ?f property:drafted_by resource:Cincinnati_Reds . ?f rdf:type ontology:common_name }
[]
common name
Q2964878
SYSTEM
Chris Valaika
Q2964878
(c(Q502895),P647,Q826751)
action filter_type
action find_reverse
entity Q826751
relation P647
type Q502895
[ANSWER] drafted Cincinnati Reds
[{'concept': 'Q502895'}, 'P647', 'Q826751']
SELECT DISTINCT ?f WHERE { ?f property:P647 resource:Q826751 . ?f rdf:type ontology:Q502895 }
Chris Valaika
Chris Valaika drafted Cincinnati Reds
Chris Valaika
action filter_type
action find_reverse
entity Cincinnati Reds
relation drafted by
type common name
[{'concept': 'common name'}, 'drafted by', 'Cincinnati Reds']
SELECT DISTINCT ?f WHERE { ?f property:drafted_by resource:Cincinnati_Reds . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2964878
P69
Q159334
USER
Which secondary school was that person educated at ?
(Q2964878,P69,c(Q159334))
action filter_type
action find
entity Q2964878
relation P69
type Q159334
['Q2964878', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q159334 . resource:Q2964878 property:P69 ?p }
Chris Valaika
action filter_type
action find
entity Chris Valaika
relation educated at
type secondary school
['Chris Valaika', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:secondary_school . resource:Chris_Valaika property:educated_at ?p }
[]
secondary school
Q5674162
SYSTEM
William S. Hart High School
Q5674162
(Q2964878,P69,c(Q159334))
action filter_type
action find
entity Q2964878
relation P69
type Q159334
That person was educated at [ANSWER]
['Q2964878', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q159334 . resource:Q2964878 property:P69 ?p }
William S. Hart High School
That person was educated at William S. Hart High School
William S. Hart High School
action filter_type
action find
entity Chris Valaika
relation educated at
type secondary school
['Chris Valaika', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:secondary_school . resource:Chris_Valaika property:educated_at ?p }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q15416
USER
Which television programs had their voice dubbing done by max number of people ?
(c(Q15416),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15416
type Q502895
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?r ) { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?x ) WHERE { ?j rdf:type ontology:Q502895 . ?l rdf:type ontology:Q15416 . ?l property:P725 ?j } GROUP BY ?l } } . FILTER ( ?h = ?r ) . { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?h ) WHERE { ?d property:P725 ?y . ?d rdf:type ontology:Q15416 . ?y rdf:type ontology:Q502895 } GROUP BY ?d } }
action argmax
action find_tuple_counts
relation voice actor
type television program
type common name
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?r ) { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?x ) WHERE { ?j rdf:type ontology:common_name . ?l rdf:type ontology:television_program . ?l property:voice_actor ?j } GROUP BY ?l } } . FILTER ( ?h = ?r ) . { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?h ) WHERE { ?d property:voice_actor ?y . ?d rdf:type ontology:television_program . ?y rdf:type ontology:common_name } GROUP BY ?d } }
[]
common name television program
Q23558
SYSTEM
House
Q23558
(c(Q15416),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15416
type Q502895
[ANSWER] had their voice dubbing done by max number of people
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?r ) { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?x ) WHERE { ?j rdf:type ontology:Q502895 . ?l rdf:type ontology:Q15416 . ?l property:P725 ?j } GROUP BY ?l } } . FILTER ( ?h = ?r ) . { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?h ) WHERE { ?d property:P725 ?y . ?d rdf:type ontology:Q15416 . ?y rdf:type ontology:Q502895 } GROUP BY ?d } }
House
House had their voice dubbing done by max number of people
House
action argmax
action find_tuple_counts
relation voice actor
type television program
type common name
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?r ) { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?x ) WHERE { ?j rdf:type ontology:common_name . ?l rdf:type ontology:television_program . ?l property:voice_actor ?j } GROUP BY ?l } } . FILTER ( ?h = ?r ) . { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?h ) WHERE { ?d property:voice_actor ?y . ?d rdf:type ontology:television_program . ?y rdf:type ontology:common_name } GROUP BY ?d } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20657663 Q2964878
P27
Q15617994
USER
Which administrative territories are Chris Valaika or Leslie Rawlins an inhabitant of ?
OR((Q2964878,P27,c(Q15617994)), (Q20657663,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2964878
relation P27
action find
entity Q20657663
relation P27
type Q15617994
{'OR': [['Q2964878', 'P27', {'concept': 'Q15617994'}], ['Q20657663', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q2964878 property:P27 ?j } UNION { resource:Q20657663 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
Leslie Rawlins Chris Valaika
action filter_type
action union
action find
entity Chris Valaika
relation country of citizenship
action find
entity Leslie Rawlins
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Chris Valaika', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Leslie Rawlins', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Chris_Valaika property:country_of_citizenship ?j } UNION { resource:Leslie_Rawlins property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q754 Q30
SYSTEM
Trinidad and Tobago, United States of America
Q754 Q30
OR((Q2964878,P27,c(Q15617994)), (Q20657663,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2964878
relation P27
action find
entity Q20657663
relation P27
type Q15617994
[ANSWERS] are Chris Valaika or Leslie Rawlins an inhabitant of
{'OR': [['Q2964878', 'P27', {'concept': 'Q15617994'}], ['Q20657663', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q2964878 property:P27 ?j } UNION { resource:Q20657663 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
Trinidad and Tobago United States of America
Trinidad and Tobago and United States of America are Chris Valaika or Leslie Rawlins an inhabitant of
Trinidad and Tobago United States of America
action filter_type
action union
action find
entity Chris Valaika
relation country of citizenship
action find
entity Leslie Rawlins
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Chris Valaika', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Leslie Rawlins', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Chris_Valaika property:country_of_citizenship ?j } UNION { resource:Leslie_Rawlins property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q227
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with less number of administrative territories than Azerbaijan ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q227
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P530 resource:Q227 . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?g < ?d ) . { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:P530 ?w . ?w rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?w } }
Azerbaijan
action count
action less
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_reverse
entity Azerbaijan
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 ( ?w ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:diplomatic_relation resource:Azerbaijan . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g < ?d ) . { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
123
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q45 Q792 Q790 Q954 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q36 Q928 Q929 Q39 Q739 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q225 Q224 Q221 Q96 Q229 Q902 Q1036 Q1037 Q974 Q1032 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q227
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P530 resource:Q227 . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?g < ?d ) . { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:P530 ?w . ?w rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?w } }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad Portugal El Salvador Haiti Zimbabwe South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Poland Philippines Central African Republic Switzerland Colombia 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 Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan 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 Togo Tonga Spain New Caledonia Thailand
123
action count
action less
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_reverse
entity Azerbaijan
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 ( ?w ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:diplomatic_relation resource:Azerbaijan . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g < ?d ) . { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q983
P530
Q15617994 Q15617994
USER
And how about Equatorial Guinea?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q983
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P530 resource:Q983 . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?n < ?j ) }
Equatorial Guinea
action count
action less
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_reverse
entity Equatorial Guinea
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 ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:diplomatic_relation resource:Equatorial_Guinea . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n < ?j ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
64
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q837 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q232 Q238 Q20 Q1045 Q1041 Q921 Q1027 Q1020 Q842 Q1028 Q786 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q218 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q983
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P530 resource:Q983 . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?n < ?j ) }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Nepal Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Kazakhstan San Marino Norway Somalia Senegal Brunei Mauritius Malawi Oman Morocco Dominican Republic Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Romania Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
64
action count
action less
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_reverse
entity Equatorial Guinea
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 ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:diplomatic_relation resource:Equatorial_Guinea . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n < ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P6
Q502895
USER
What people are United States of America the head of goverment of ?
(Q30,P6,c(Q502895))
action filter_type
action find
entity Q30
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q30 property:P6 ?p }
United States of America
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:United_States_of_America property:head_of_government ?p }
[]
common name
Q76 Q9916 Q22686
SYSTEM
Barack Obama, Dwight D. Eisenhower, Donald Trump
Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q35236 Q12325 Q33866 Q35648 Q9588 Q9582 Q35041 Q207 Q11813 Q91 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q11869 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
(Q30,P6,c(Q502895))
action filter_type
action find
entity Q30
relation P6
type Q502895
Are the head of goverment of President [ANSWERS] United States of America
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q30 property:P6 ?p }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Herbert Hoover James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William McKinley George W. Bush James Madison Abraham Lincoln Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William Henry Harrison Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
Are the head of goverment of President Barack Obama, Dwight D. Eisenhower and Donald Trump United States of America
Barack Obama Dwight D. Eisenhower Donald Trump
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:United_States_of_America property:head_of_government ?p }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q76 Q9916 Q22686
P102
Q7210356
USER
Which political organizations are Barack Obama, Dwight D. Eisenhower and Donald Trump a member of ?
(Q76,P102,c(Q7210356)) (Q9916,P102,c(Q7210356)) (Q22686,P102,c(Q7210356))
action union
action filter_type
action find
entity Q76
relation P102
type Q7210356
action filter_type
action find
entity Q9916
relation P102
type Q7210356
action filter_type
action find
entity Q22686
relation P102
type Q7210356
['Q76', 'P102', {'concept': 'Q7210356'}] ['Q9916', 'P102', {'concept': 'Q7210356'}] ['Q22686', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { ?c property:P102 ?u . VALUES ( ?c ) { ( resource:Q76 ) ( resource:Q9916 ) } }
Barack Obama Dwight D. Eisenhower Donald Trump
action union
action filter_type
action find
entity Barack Obama
relation member of political party
type political organization
action filter_type
action find
entity Dwight D. Eisenhower
relation member of political party
type political organization
action filter_type
action find
entity Donald Trump
relation member of political party
type political organization
['Barack Obama', 'member of political party', {'concept': 'political organization'}] ['Dwight D. Eisenhower', 'member of political party', {'concept': 'political organization'}] ['Donald Trump', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { ?c property:member_of_political_party ?u . VALUES ( ?c ) { ( resource:Barack_Obama ) ( resource:Dwight_D._Eisenhower ) } }
[]
political organization
Q29552 Q29468 Q29468
SYSTEM
Democratic Party for 1st, Republican Party for 2nd, 3rd
Q29552 Q29468 Q29468
(Q76,P102,c(Q7210356)) (Q9916,P102,c(Q7210356)) (Q22686,P102,c(Q7210356))
action union
action filter_type
action find
entity Q76
relation P102
type Q7210356
action filter_type
action find
entity Q9916
relation P102
type Q7210356
action filter_type
action find
entity Q22686
relation P102
type Q7210356
[ANSWERS]
['Q76', 'P102', {'concept': 'Q7210356'}] ['Q9916', 'P102', {'concept': 'Q7210356'}] ['Q22686', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { ?c property:P102 ?u . VALUES ( ?c ) { ( resource:Q76 ) ( resource:Q9916 ) } }
Democratic Party Republican Party Republican Party
Party Democratic Party, Republican Party and Republican Party are Barack Obama, Dwight D. Eisenhower and Donald Trump a member of
Democratic Party Republican Party Republican Party
action union
action filter_type
action find
entity Barack Obama
relation member of political party
type political organization
action filter_type
action find
entity Dwight D. Eisenhower
relation member of political party
type political organization
action filter_type
action find
entity Donald Trump
relation member of political party
type political organization
['Barack Obama', 'member of political party', {'concept': 'political organization'}] ['Dwight D. Eisenhower', 'member of political party', {'concept': 'political organization'}] ['Donald Trump', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { ?c property:member_of_political_party ?u . VALUES ( ?c ) { ( resource:Barack_Obama ) ( resource:Dwight_D._Eisenhower ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22686
P25
Q502895
USER
Who was the mom of Donald Trump ?
(Q22686,P25,c(Q502895))
action filter_type
action find
entity Q22686
relation P25
type Q502895
['Q22686', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q22686 property:P25 ?q . ?q rdf:type ontology:Q502895 }
Donald Trump
action filter_type
action find
entity Donald Trump
relation mother
type common name
['Donald Trump', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Donald_Trump property:mother ?q . ?q rdf:type ontology:common_name }
[]
common name
Q22952511
SYSTEM
Mary Anne MacLeod
Q22952511
(Q22686,P25,c(Q502895))
action filter_type
action find
entity Q22686
relation P25
type Q502895
The mom of Donald Trump was named [ANSWER]
['Q22686', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q22686 property:P25 ?q . ?q rdf:type ontology:Q502895 }
Mary Anne MacLeod
The mom of Donald Trump was named Mary Anne MacLeod
Mary Anne MacLeod
action filter_type
action find
entity Donald Trump
relation mother
type common name
['Donald Trump', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Donald_Trump property:mother ?q . ?q rdf:type ontology:common_name }
[]