Simple Question (Direct)
Simple Question
Q3174439
P21
Q290
USER
Which sex does Jean Rougeul possess ?
(Q3174439,P21,c(Q290))
action filter_type
action find
entity Q3174439
relation P21
type Q290
['Q3174439', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q3174439 property:P21 ?e . ?e rdf:type ontology:Q290 }
Jean Rougeul
action filter_type
action find
entity Jean Rougeul
relation gender
type sex
['Jean Rougeul', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Jean_Rougeul property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3174439,P21,c(Q290))
action filter_type
action find
entity Q3174439
relation P21
type Q290
Jean Rougeul possesses un [ANSWER]
['Q3174439', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q3174439 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
Jean Rougeul possesses un male
male
action filter_type
action find
entity Jean Rougeul
relation gender
type sex
['Jean Rougeul', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Jean_Rougeul property:gender ?e . ?e rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20252443 Q3174439
P27
Q15617994
USER
Which administrative territories do Jean Rougeul or Sakari Nupponen belong to ?
OR((Q3174439,P27,c(Q15617994)), (Q20252443,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3174439
relation P27
action find
entity Q20252443
relation P27
type Q15617994
{'OR': [['Q3174439', 'P27', {'concept': 'Q15617994'}], ['Q20252443', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q3174439 property:P27 ?k } UNION { resource:Q20252443 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Sakari Nupponen Jean Rougeul
action filter_type
action union
action find
entity Jean Rougeul
relation country of citizenship
action find
entity Sakari Nupponen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jean Rougeul', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sakari Nupponen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Jean_Rougeul property:country_of_citizenship ?k } UNION { resource:Sakari_Nupponen property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q33
SYSTEM
France, Finland
Q142 Q33
OR((Q3174439,P27,c(Q15617994)), (Q20252443,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3174439
relation P27
action find
entity Q20252443
relation P27
type Q15617994
Jean Rougeul or Sakari Nupponen belong to the [ANSWERS]
{'OR': [['Q3174439', 'P27', {'concept': 'Q15617994'}], ['Q20252443', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q3174439 property:P27 ?k } UNION { resource:Q20252443 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
France Finland
Jean Rougeul or Sakari Nupponen belong to the France and Finland
France Finland
action filter_type
action union
action find
entity Jean Rougeul
relation country of citizenship
action find
entity Sakari Nupponen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jean Rougeul', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sakari Nupponen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Jean_Rougeul property:country_of_citizenship ?k } UNION { resource:Sakari_Nupponen property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q159334 Q355304
USER
Which administrative territories are atmost 5675 secondary schools or watercourses a part of ?
(c(Q159334)|c(Q355304),P17,c(Q15617994))
action atmost
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q159334
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q355304
value 5675
[[{'concept': 'Q159334'}, {'concept': 'Q355304'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) ?l WHERE { { ?e property:P17 ?l . ?l rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q159334 } UNION { ?e property:P17 ?l . ?l rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q355304 } } GROUP BY ?l } . FILTER ( ?y <= 5675 ) }
action atmost
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type secondary school
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type watercourse
value 5675
[[{'concept': 'secondary school'}, {'concept': 'watercourse'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) ?l WHERE { { ?e property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:secondary_school } UNION { ?e property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:watercourse } } GROUP BY ?l } . FILTER ( ?y <= 5675 ) }
[]
designation for an administrative territorial entity secondary school watercourse
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q702 Q804 Q801 Q800 Q1256 Q709 Q398 Q805 Q339952 Q419 Q270508 Q668 Q684030 Q2172530 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q784 Q265 Q214 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q717 Q837 Q565812 Q187035 Q252 Q399 Q1462 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q517333 Q796 Q794 Q954 Q889 Q2001966 Q326029 Q884 Q958 Q881 Q986 Q219 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q736 Q153136 Q1210 Q33 Q921 Q31 Q924 Q36 Q34 Q928 Q155019 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q107426 Q424 Q730 Q1282 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q836 Q34762 Q1458 Q786 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q47261 Q96 Q229 Q347 Q1050 Q977 Q17 Q704288 Q10957559 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q389004 Q754 Q750 Q212 Q213 Q211 Q217 Q1013 Q215 Q160307 Q164092 Q37 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q29 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q869 Q426025 Q953
(c(Q159334)|c(Q355304),P17,c(Q15617994))
action atmost
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q159334
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q355304
value 5675
[ANSWERS] are atmost 5675 secondary schools or watercourses a part of
[[{'concept': 'Q159334'}, {'concept': 'Q355304'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) ?l WHERE { { ?e property:P17 ?l . ?l rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q159334 } UNION { ?e property:P17 ?l . ?l rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q355304 } } GROUP BY ?l } . FILTER ( ?y <= 5675 ) }
Federated States of Micronesia Panama Israel Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Peru Andora India Principality of Serbia Electorate of Württemberg Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Dominica Uzbekistan Slovakia Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Venezuela Nepal Principality of Calenberg Principality of Albania Indonesia Armenia Sardinia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Principality of Polotsk Iraq Iran Zimbabwe Afghanistan Company rule in India Duchy of Brunswick South Korea South Sudan Vietnam Eritrea Bulgaria Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Ecuador Habsburg Empire Lombardy Finland Brunei Belgium Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Anjou Cambodia Suriname Lazio Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Myanmar Principality of Bayreuth Calabria Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Mexico Cyprus Liechtenstein Swaziland Djibouti Japan Duchy of Holstein Moldavia Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Wallachia Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Lesotho Slovenia Fatimid caliphate Duchy of Saxony Lithuania Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia Spain East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Thailand Duchy of Savoy Zambia
Italy, Brazil and Georgia are atmost 5675 secondary schools or watercourses a part of
Italy Brazil Georgia
action atmost
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type secondary school
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type watercourse
value 5675
[[{'concept': 'secondary school'}, {'concept': 'watercourse'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) ?l WHERE { { ?e property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:secondary_school } UNION { ?e property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:watercourse } } GROUP BY ?l } . FILTER ( ?y <= 5675 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1750917
P530
Q1048835
USER
Do Taragudo have ambassadorial relations with those administrative territories ?
(Q1750917,P530,Q38) (Q1750917,P530,Q155) (Q1750917,P530,Q230)
action is_in
entity prev_answer
action find
entity Q1750917
relation P530
['Q1750917', 'P530', 'Q38'] ['Q1750917', 'P530', 'Q155'] ['Q1750917', 'P530', 'Q230']
ASK WHERE { resource:Q1750917 property:P530 ?n . VALUES ( ?n ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } }
Taragudo
action is_in
entity prev_answer
action find
entity Taragudo
relation diplomatic relation
['Taragudo', 'diplomatic relation', 'Italy'] ['Taragudo', 'diplomatic relation', 'Brazil'] ['Taragudo', 'diplomatic relation', 'Georgia']
ASK WHERE { resource:Taragudo property:diplomatic_relation ?n . VALUES ( ?n ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } }
[]
political territorial entity
SYSTEM
NO
(Q1750917,P530,Q38) (Q1750917,P530,Q155) (Q1750917,P530,Q230)
action is_in
entity prev_answer
action find
entity Q1750917
relation P530
[ANSWER]
['Q1750917', 'P530', 'Q38'] ['Q1750917', 'P530', 'Q155'] ['Q1750917', 'P530', 'Q230']
ASK WHERE { resource:Q1750917 property:P530 ?n . VALUES ( ?n ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } }
No
action is_in
entity prev_answer
action find
entity Taragudo
relation diplomatic relation
['Taragudo', 'diplomatic relation', 'Italy'] ['Taragudo', 'diplomatic relation', 'Brazil'] ['Taragudo', 'diplomatic relation', 'Georgia']
ASK WHERE { resource:Taragudo property:diplomatic_relation ?n . VALUES ( ?n ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P36
Q56061 Q486972 Q15617994
USER
How many administrative territories have approximately 2 administrative territories and human settlements as their capital ?
(c(Q15617994),P36,c(Q56061)|c(Q486972))
action count
action approx
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q486972
value 2
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?f WHERE { ?s rdf:type ?t . VALUES ( ?t ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } } GROUP BY ?f } . FILTER ( ?k = 2 ) }
action count
action approx
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?f WHERE { ?s rdf:type ?t . VALUES ( ?t ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } } GROUP BY ?f } . FILTER ( ?k = 2 ) }
[]
administrative territorial entity human settlement designation for an administrative territorial entity
SYSTEM
9
Q258 Q1020 Q41 Q30 Q230 Q199688 Q12536 Q517333 Q17
(c(Q15617994),P36,c(Q56061)|c(Q486972))
action count
action approx
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q486972
value 2
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?f WHERE { ?s rdf:type ?t . VALUES ( ?t ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } } GROUP BY ?f } . FILTER ( ?k = 2 ) }
South Africa Malawi Greece United States of America Georgia Almohad Abbasid caliphate Principality of Polotsk Japan
9
action count
action approx
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?f WHERE { ?s rdf:type ?t . VALUES ( ?t ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } } GROUP BY ?f } . FILTER ( ?k = 2 ) }
[]