Simple Question (Direct)
Simple Question
Q7050359
P21
Q290
USER
What is the sex of Norbert Putnam ?
(Q7050359,P21,c(Q290))
action filter_type
action find
entity Q7050359
relation P21
type Q290
['Q7050359', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q7050359 property:P21 ?p . ?p rdf:type ontology:Q290 }
Norbert Putnam
action filter_type
action find
entity Norbert Putnam
relation gender
type sex
['Norbert Putnam', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Norbert_Putnam property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7050359,P21,c(Q290))
action filter_type
action find
entity Q7050359
relation P21
type Q290
The sex of Norbert Putnam is the [ANSWER]
['Q7050359', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q7050359 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
The sex of Norbert Putnam is the male
male
action filter_type
action find
entity Norbert Putnam
relation gender
type sex
['Norbert Putnam', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Norbert_Putnam property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7050359
P19
Q15617994
USER
Which administrative territory was Norbert Putnam born in ?
(Q7050359,P19,c(Q15617994))
action filter_type
action find
entity Q7050359
relation P19
type Q15617994
['Q7050359', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q7050359 property:P19 ?t . ?t rdf:type ontology:Q15617994 }
Norbert Putnam
action filter_type
action find
entity Norbert Putnam
relation place of birth
type designation for an administrative territorial entity
['Norbert Putnam', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Norbert_Putnam property:place_of_birth ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7050359,P19,c(Q15617994))
action filter_type
action find
entity Q7050359
relation P19
type Q15617994
Norbert Putnam was born the [ANSWER]
['Q7050359', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q7050359 property:P19 ?t . ?t rdf:type ontology:Q15617994 }
United States of America
Norbert Putnam was born the United States of America
United States of America
action filter_type
action find
entity Norbert Putnam
relation place of birth
type designation for an administrative territorial entity
['Norbert Putnam', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Norbert_Putnam property:place_of_birth ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q912
P530
Q15617994 Q15617994
USER
How many administrative territories holds diplomatic relationship with approximately the same number of administrative territories as Mali ?
(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 Q912
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Q912 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?u = ?i ) }
Mali
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 Mali
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 ( ?l ) AS ?g ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Mali property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?u = ?i ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
151
Q702 Q804 Q800 Q419 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 Q912
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Q912 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?u = ?i ) }
Federated States of Micronesia Panama Costa Rica Peru 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
151
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 Mali
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 ( ?l ) AS ?g ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Mali property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?u = ?i ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q114
P194
Q11204
USER
How many legislatures are the legislative bodies for United States of America or Kenya ?
(Q30,P194,c(Q11204)) (Q114,P194,c(Q11204))
action count
action union
action filter_type
action find
entity Q30
relation P194
type Q11204
action filter_type
action find
entity Q114
relation P194
type Q11204
['Q30', 'P194', {'concept': 'Q11204'}] ['Q114', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { resource:Q114 property:P194 ?a . ?a rdf:type ontology:Q11204 } UNION { resource:Q30 property:P194 ?a . ?a rdf:type ontology:Q11204 } }
United States of America Kenya
action count
action union
action filter_type
action find
entity United States of America
relation legislative body
type legislature
action filter_type
action find
entity Kenya
relation legislative body
type legislature
['United States of America', 'legislative body', {'concept': 'legislature'}] ['Kenya', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { resource:Kenya property:legislative_body ?a . ?a rdf:type ontology:legislature } UNION { resource:United_States_of_America property:legislative_body ?a . ?a rdf:type ontology:legislature } }
[]
legislature
SYSTEM
2
Q14468380 Q11268
(Q30,P194,c(Q11204)) (Q114,P194,c(Q11204))
action count
action union
action filter_type
action find
entity Q30
relation P194
type Q11204
action filter_type
action find
entity Q114
relation P194
type Q11204
[ANSWER]
['Q30', 'P194', {'concept': 'Q11204'}] ['Q114', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { resource:Q114 property:P194 ?a . ?a rdf:type ontology:Q11204 } UNION { resource:Q30 property:P194 ?a . ?a rdf:type ontology:Q11204 } }
Parliament of Kenya United States Congress
2
action count
action union
action filter_type
action find
entity United States of America
relation legislative body
type legislature
action filter_type
action find
entity Kenya
relation legislative body
type legislature
['United States of America', 'legislative body', {'concept': 'legislature'}] ['Kenya', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { resource:Kenya property:legislative_body ?a . ?a rdf:type ontology:legislature } UNION { resource:United_States_of_America property:legislative_body ?a . ?a rdf:type ontology:legislature } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q15416 Q7725634
USER
How many administrative territories are the origins of exactly 15 television programs and literary works ?
(c(Q15416)|c(Q7725634),P495,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
value 15
[[{'concept': 'Q15416'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?k ) WHERE { { ?z property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15416 } UNION { ?z property:P495 ?t . ?z rdf:type ontology:Q7725634 . ?t rdf:type ontology:Q15617994 } } GROUP BY ?t } . FILTER ( ?k = 15 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
value 15
[[{'concept': 'television program'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?k ) WHERE { { ?z property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:television_program } UNION { ?z property:country_of_origin ?t . ?z rdf:type ontology:literary_work . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?t } . FILTER ( ?k = 15 ) }
[]
designation for an administrative territorial entity television program literary work
SYSTEM
3
Q403 Q881 Q218
(c(Q15416)|c(Q7725634),P495,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
value 15
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?k ) WHERE { { ?z property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15416 } UNION { ?z property:P495 ?t . ?z rdf:type ontology:Q7725634 . ?t rdf:type ontology:Q15617994 } } GROUP BY ?t } . FILTER ( ?k = 15 ) }
Serbia Vietnam Romania
3
action count
action equal
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
value 15
[[{'concept': 'television program'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?k ) WHERE { { ?z property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:television_program } UNION { ?z property:country_of_origin ?t . ?z rdf:type ontology:literary_work . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?t } . FILTER ( ?k = 15 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q16 Q7050359
P530 P27
Q15617994
USER
Which administrative territories are Norbert Putnam an inhabitant of and have diplomatic relations with Canada ?
AND((Q7050359,P27,c(Q15617994)), (Q16,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q7050359
relation P27
action find
entity Q16
relation P530
type Q15617994
{'AND': [['Q7050359', 'P27', {'concept': 'Q15617994'}], ['Q16', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q7050359 property:P27 ?e . resource:Q16 property:P530 ?e }
Canada Norbert Putnam
action filter_type
action intersection
action find
entity Norbert Putnam
relation country of citizenship
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Norbert Putnam', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Norbert_Putnam property:country_of_citizenship ?e . resource:Canada property:diplomatic_relation ?e }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q7050359,P27,c(Q15617994)), (Q16,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q7050359
relation P27
action find
entity Q16
relation P530
type Q15617994
[ANSWER] is Norbert Putnam an inhabitant of and have diplomatic relations with Canada
{'AND': [['Q7050359', 'P27', {'concept': 'Q15617994'}], ['Q16', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q7050359 property:P27 ?e . resource:Q16 property:P530 ?e }
United States of America
United States of America is Norbert Putnam an inhabitant of and have diplomatic relations with Canada
United States of America
action filter_type
action intersection
action find
entity Norbert Putnam
relation country of citizenship
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Norbert Putnam', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Norbert_Putnam property:country_of_citizenship ?e . resource:Canada property:diplomatic_relation ?e }
[]