Simple Question (Direct)
Simple Question
Q876589
P106
Q12737077
USER
What is the job of Roland Berger ?
(Q876589,P106,c(Q12737077))
action filter_type
action find
entity Q876589
relation P106
type Q12737077
['Q876589', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q876589 property:P106 ?j }
Roland Berger
action filter_type
action find
entity Roland Berger
relation occupation
type occupation
['Roland Berger', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Roland_Berger property:occupation ?j }
[]
occupation
Q131524
SYSTEM
entrepreneur
Q131524
(Q876589,P106,c(Q12737077))
action filter_type
action find
entity Q876589
relation P106
type Q12737077
The job of Roland Berger is an [ANSWER]
['Q876589', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q876589 property:P106 ?j }
entrepreneur
The job of Roland Berger is an entrepreneur
entrepreneur
action filter_type
action find
entity Roland Berger
relation occupation
type occupation
['Roland Berger', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Roland_Berger property:occupation ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q876589
P112
Q43229
USER
Which organization was started by that person ?
(c(Q43229),P112,Q131524)
action filter_type
action find_reverse
entity Q876589
relation P112
type Q43229
[{'concept': 'Q43229'}, 'P112', 'Q131524']
SELECT DISTINCT ?v WHERE { ?v property:P112 resource:Q876589 . ?v rdf:type ontology:Q43229 }
Roland Berger
action filter_type
action find_reverse
entity Roland Berger
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'entrepreneur']
SELECT DISTINCT ?v WHERE { ?v property:founder resource:Roland_Berger . ?v rdf:type ontology:organization }
[]
organization
Q78459
SYSTEM
Roland Berger Strategy Consultants
Q78459
(c(Q43229),P112,Q131524)
action filter_type
action find_reverse
entity Q876589
relation P112
type Q43229
[ANSWER] was started by that person
[{'concept': 'Q43229'}, 'P112', 'Q131524']
SELECT DISTINCT ?v WHERE { ?v property:P112 resource:Q876589 . ?v rdf:type ontology:Q43229 }
Roland Berger Strategy Consultants
Roland Berger Strategy Consultants was started by that person
Roland Berger Strategy Consultants
action filter_type
action find_reverse
entity Roland Berger
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'entrepreneur']
SELECT DISTINCT ?v WHERE { ?v property:founder resource:Roland_Berger . ?v rdf:type ontology:organization }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q78459 Q3175648
P108
Q502895
USER
Does Jean de Ponton d'Amécourt work for that organization ?
(Q3175648,P108,Q78459)
action is_in
entity Q78459
action find
entity Q3175648
relation P108
['Q3175648', 'P108', 'Q78459']
ASK WHERE { resource:Q3175648 property:P108 resource:Q78459 }
Roland Berger Strategy Consultants Jean de Ponton d'Amécourt
action is_in
entity Roland Berger Strategy Consultants
action find
entity Jean de Ponton d'Amécourt
relation employer
["Jean de Ponton d'Amécourt", 'employer', 'Roland Berger Strategy Consultants']
ASK WHERE { resource:Jean_de_Ponton_d'Amécourt property:employer resource:Roland_Berger_Strategy_Consultants }
[]
common name
SYSTEM
YES
(Q3175648,P108,Q78459)
action is_in
entity Q78459
action find
entity Q3175648
relation P108
[ANSWER]
['Q3175648', 'P108', 'Q78459']
ASK WHERE { resource:Q3175648 property:P108 resource:Q78459 }
Yes
action is_in
entity Roland Berger Strategy Consultants
action find
entity Jean de Ponton d'Amécourt
relation employer
["Jean de Ponton d'Amécourt", 'employer', 'Roland Berger Strategy Consultants']
ASK WHERE { resource:Jean_de_Ponton_d'Amécourt property:employer resource:Roland_Berger_Strategy_Consultants }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q876589 Q183
P27
Q1048835
USER
Is Germany the native country of Roland Berger ?
(Q876589,P27,Q183)
action is_in
entity Q183
action find
entity Q876589
relation P27
['Q876589', 'P27', 'Q183']
ASK WHERE { resource:Q876589 property:P27 resource:Q183 }
Roland Berger Germany
action is_in
entity Germany
action find
entity Roland Berger
relation country of citizenship
['Roland Berger', 'country of citizenship', 'Germany']
ASK WHERE { resource:Roland_Berger property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q876589,P27,Q183)
action is_in
entity Q183
action find
entity Q876589
relation P27
[ANSWER]
['Q876589', 'P27', 'Q183']
ASK WHERE { resource:Q876589 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Roland Berger
relation country of citizenship
['Roland Berger', 'country of citizenship', 'Germany']
ASK WHERE { resource:Roland_Berger property:country_of_citizenship resource:Germany }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6768279 Q78459
P19 P740
Q56061
USER
Which administrative territories are the locations of formation of Roland Berger Strategy Consultants or were Mark Jones born at ?
OR((Q78459,P740,c(Q56061)), (Q6768279,P19,c(Q56061)))
action filter_type
action union
action find
entity Q78459
relation P740
action find
entity Q6768279
relation P19
type Q56061
{'OR': [['Q78459', 'P740', {'concept': 'Q56061'}], ['Q6768279', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q78459 property:P740 ?m } UNION { resource:Q6768279 property:P19 ?m } } . ?m rdf:type ontology:Q56061 }
Mark Jones Roland Berger Strategy Consultants
action filter_type
action union
action find
entity Roland Berger Strategy Consultants
relation location of formation
action find
entity Mark Jones
relation place of birth
type administrative territorial entity
{'OR': [['Roland Berger Strategy Consultants', 'location of formation', {'concept': 'administrative territorial entity'}], ['Mark Jones', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Roland_Berger_Strategy_Consultants property:location_of_formation ?m } UNION { resource:Mark_Jones property:place_of_birth ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726 Q678138
SYSTEM
Munich, Hayes
Q1726 Q678138
OR((Q78459,P740,c(Q56061)), (Q6768279,P19,c(Q56061)))
action filter_type
action union
action find
entity Q78459
relation P740
action find
entity Q6768279
relation P19
type Q56061
[ANSWERS] are the locations of formation of Roland Berger Strategy Consultants or were Mark Jones born at
{'OR': [['Q78459', 'P740', {'concept': 'Q56061'}], ['Q6768279', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q78459 property:P740 ?m } UNION { resource:Q6768279 property:P19 ?m } } . ?m rdf:type ontology:Q56061 }
Munich Hayes
Munich and Hayes are the locations of formation of Roland Berger Strategy Consultants or were Mark Jones born at
Munich Hayes
action filter_type
action union
action find
entity Roland Berger Strategy Consultants
relation location of formation
action find
entity Mark Jones
relation place of birth
type administrative territorial entity
{'OR': [['Roland Berger Strategy Consultants', 'location of formation', {'concept': 'administrative territorial entity'}], ['Mark Jones', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Roland_Berger_Strategy_Consultants property:location_of_formation ?m } UNION { resource:Mark_Jones property:place_of_birth ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4165561 Q1726
P17
Q1048835
USER
Which political territories are Munich or Government House, Bermuda located in ?
OR((Q1726,P17,c(Q1048835)), (Q4165561,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q1726
relation P17
action find
entity Q4165561
relation P17
type Q1048835
{'OR': [['Q1726', 'P17', {'concept': 'Q1048835'}], ['Q4165561', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1726 property:P17 ?j } UNION { resource:Q4165561 property:P17 ?j } } . ?j rdf:type ontology:Q1048835 }
Government House, Bermuda Munich
action filter_type
action union
action find
entity Munich
relation country
action find
entity Government House, Bermuda
relation country
type political territorial entity
{'OR': [['Munich', 'country', {'concept': 'political territorial entity'}], ['Government House, Bermuda', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Munich property:country ?j } UNION { resource:Government_House,_Bermuda property:country ?j } } . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q23635 Q183
SYSTEM
Bermuda, Germany
Q23635 Q183
OR((Q1726,P17,c(Q1048835)), (Q4165561,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q1726
relation P17
action find
entity Q4165561
relation P17
type Q1048835
[ANSWERS]
{'OR': [['Q1726', 'P17', {'concept': 'Q1048835'}], ['Q4165561', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1726 property:P17 ?j } UNION { resource:Q4165561 property:P17 ?j } } . ?j rdf:type ontology:Q1048835 }
Bermuda Germany
Which political territories are Munich or Government House, Bermuda located in
Bermuda Germany
action filter_type
action union
action find
entity Munich
relation country
action find
entity Government House, Bermuda
relation country
type political territorial entity
{'OR': [['Munich', 'country', {'concept': 'political territorial entity'}], ['Government House, Bermuda', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Munich property:country ?j } UNION { resource:Government_House,_Bermuda property:country ?j } } . ?j rdf:type ontology:political_territorial_entity }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P1427
Q1048835 Q22348500 Q2912397
USER
Which political territories gives the origination point of approximately the same number of cycling race classes or single-day races as that political territory ?
(c(Q22348500)|c(Q2912397),P1427,c(Q1048835))
[[{'concept': 'Q22348500'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q22348500 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q2912397 }
[[{'concept': 'cycling race class defined by the International Cycling Union'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:single-day_race }
[]
political territorial entity cycling race class defined by the International Cycling Union single-day race
Comparative|More/Less|Mult. entity type|Clarification
Q183
SYSTEM
Did you mean Germany ?
(c(Q22348500)|c(Q2912397),P1427,c(Q1048835))
[ANSWER]
[[{'concept': 'Q22348500'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q22348500 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q2912397 }
Did you mean Germany ?
Germany
[[{'concept': 'cycling race class defined by the International Cycling Union'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:single-day_race }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q22348500)|c(Q2912397),P1427,c(Q1048835))
[[{'concept': 'Q22348500'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
[[{'concept': 'cycling race class defined by the International Cycling Union'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
[]
Q183 Q639412 Q12647
SYSTEM
Germany, Tarazona, Vielha e Mijaran
Q572800 Q15907 Q1443867 Q55480 Q937763 Q593620 Q615841 Q183 Q1552975 Q496424 Q301437 Q2264671 Q1628379 Q49661 Q1607762 Q536682 Q641221 Q1647365 Q671341 Q1765676 Q848172 Q1442183 Q847329 Q1605692 Q11492 Q642046 Q430454 Q956524 Q1646362 Q1641632 Q488555 Q371748 Q1375842 Q739495 Q1649616 Q634078 Q1186888 Q15486 Q1629539 Q851020 Q846153 Q1621191 Q490638 Q913277 Q77433 Q15640 Q492748 Q1374736 Q1617896 Q12686 Q484552 Q818341 Q564773 Q221749 Q639412 Q12647 Q825883 Q976528 Q1771143 Q693913 Q1605993 Q604810 Q592747
(c(Q22348500)|c(Q2912397),P1427,c(Q1048835))
[ANSWERS] give the origination point of approximately the same number of cycling race classes or single-day races as that political territory
[[{'concept': 'Q22348500'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q22348500 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q2912397 }
Alcañiz Rota Los Corrales de Buelna Colmenar Viejo Graus Monachil Puebla de Don Fadrique Germany Sabiñánigo Calatayud Priego de Córdoba El Palomar Mairena del Alcor Mauren Cenlle Belorado Viveiro Urdazubi/Urdax Betanzos Torredelcampo Caleruega Sober Comillas Palomares del Río Mataró Calahorra Roa, Burgos Maella Villalpando Jódar Baeza San Lorenzo de El Escorial Ortigueira Vilanova de Arousa Orio Marín, Pontevedra Denbigh Bagà Salvaterra de Miño Xàbia San Roque A Estrada Almendralejo Mazarrón Leganés Sant Joan Despí Estepona Lalín Maceda Rialp Algeciras Monforte de Lemos Alhendín Torrevieja Tarazona Vielha e Mijaran Valls Alhaurín de la Torre Carboneras de Guadazaón Medina del Campo Cistierna Markina-Xemein Las Rozas de Madrid
Germany, Tarazona and Vielha e Mijaran give the origination point of approximately the same number of cycling race classes or single-day races as that political territory
Germany Tarazona Vielha e Mijaran
[[{'concept': 'cycling race class defined by the International Cycling Union'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:single-day_race }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q23635
P19
Q502895
USER
How many people have birthplace at Bermuda ?
(c(Q502895),P19,Q23635)
action count
action filter_type
action find_reverse
entity Q23635
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q23635']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ontology:Q502895 . ?h property:P19 resource:Q23635 }
Bermuda
action count
action filter_type
action find_reverse
entity Bermuda
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Bermuda']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ontology:common_name . ?h property:place_of_birth resource:Bermuda }
[]
common name
SYSTEM
81
Q6493239 Q16187010 Q4727583 Q6392062 Q7268291 Q7813581 Q6186523 Q6384554 Q10488569 Q4776749 Q6789241 Q6406180 Q7109479 Q7407972 Q4777469 Q6147479 Q10513927 Q10513929 Q7446866 Q7807195 Q10406406 Q3814302 Q2438123 Q6258276 Q11190761 Q4926068 Q3181110 Q6074758 Q8002918 Q6397349 Q236960 Q4800339 Q7675558 Q5222918 Q6832922 Q6252156 Q25344527 Q930783 Q6177093 Q5106065 Q6425712 Q21061943 Q1738835 Q464466 Q19661470 Q5729335 Q6708722 Q7634144 Q6821257 Q7369520 Q18684614 Q16878583 Q18638185 Q6662477 Q913219 Q7323999 Q6833387 Q5266615 Q7491704 Q7910952 Q7358520 Q18685054 Q19957824 Q19661548 Q5212385 Q436789 Q7089830 Q7608609 Q4762961 Q19152595 Q6272509 Q22915091 Q2636848 Q1508382 Q16734603 Q5259094 Q725632 Q16231958 Q3316324 Q18530594 Q6831766
(c(Q502895),P19,Q23635)
action count
action filter_type
action find_reverse
entity Q23635
relation P19
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q23635']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ontology:Q502895 . ?h property:P19 resource:Q23635 }
Lashun Dill Noel Chiappa Aljame Zuill Kentoine Jennings Quadir Maynard Tokia Russell Jesse Kirkland Keith Jennings Jared Peniston Antonio Lowe Matt Riddlehoover Kijuan Franks Ottis Steede Sam Nusum Antwan Russell Jamie Smith Ralph Bean Marquel Waldron Seion Darrell Timothy Figureido Jason Williams Keishen Bean Gina Swainson John Smith B. J. Hubbert Blenn Bean John Bowen Irving Romaine Will Kempe Kevin Richards Heather Nova Arthur Spurling Tahj Bell Darius Cox Michael Mortimore John Patton Graham Gibbons Kwame Steede Jemeiko Jennings Chris Caisey Kofi Dill Rai Simons Kenneth Amis Thomas Tudor Tucker Cheyra Bell Henry Tucker Lyndon Burgess Sue Huff Meshach Wade Ross McNicol Andrew Bascome John Barritt Devarr Boyles Lloyd Holder Brian Wellman Richard Basden Michael Parsons Devaun DeGraff Shayne Hollis Valentine Collins Roger Lee Dennis Brown Akelyla Furbert Dominique Richardson Damico Coddington Diana Douglas Omar Shakir Stephen Astwood Angelo Simmons Kenny Thompson Jonathan Ball Norma Cox Astwood Alan Silva George Tucker Michael Polenske Dennis Zuill George Starkey Shakir Smith Mishka Peter Canvane Michael K. Frith
81
action count
action filter_type
action find_reverse
entity Bermuda
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Bermuda']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ontology:common_name . ?h property:place_of_birth resource:Bermuda }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q94565
P19
Q502895
USER
And how about Bentivoglio?
(c(Q502895),P19,Q94565)
action count
action filter_type
action find_reverse
entity Q94565
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q94565']
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u property:P19 resource:Q94565 . ?u rdf:type ontology:Q502895 }
Bentivoglio
action count
action filter_type
action find_reverse
entity Bentivoglio
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Bentivoglio']
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u property:place_of_birth resource:Bentivoglio . ?u rdf:type ontology:common_name }
[]
common name
SYSTEM
12
Q3609396 Q245054 Q1907707 Q988897 Q3608133 Q459977 Q16268136 Q3845505 Q961648 Q16268267 Q3758766 Q3765483
(c(Q502895),P19,Q94565)
action count
action filter_type
action find_reverse
entity Q94565
relation P19
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q94565']
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u property:P19 resource:Q94565 . ?u rdf:type ontology:Q502895 }
Aleardo Donati Fabio Borini Massimo Loviso Michele Baldi Alberto Barbieri Simona Ventura Nicola Armaroli Marcella Resca Stefano Chiodi Corrado Cavazza Gastone Martelli Giorgio Gattei
12
action count
action filter_type
action find_reverse
entity Bentivoglio
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Bentivoglio']
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u property:place_of_birth resource:Bentivoglio . ?u rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q986
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with more number of political territories than Eritrea ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q986
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?k ) WHERE { ?b property:P530 ?w . ?b rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { resource:Q986 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?k > ?o ) }
Eritrea
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Eritrea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?k ) WHERE { ?b property:diplomatic_relation ?w . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { resource:Eritrea property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k > ?o ) }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q986
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with more number of political territories than Eritrea
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?k ) WHERE { ?b property:P530 ?w . ?b rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { resource:Q986 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?k > ?o ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy, Brazil and United States of America have diplomatic relationships with more number of political territories than Eritrea
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Eritrea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?k ) WHERE { ?b property:diplomatic_relation ?w . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { resource:Eritrea property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k > ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q347
P530
Q15617994 Q1048835
USER
And what about Liechtenstein?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q347
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?b ) WHERE { ?i property:P530 ?e . ?e rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?b > ?t ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { resource:Q347 property:P530 ?f . ?f rdf:type ontology:Q1048835 } } }
Liechtenstein
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Liechtenstein
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?b ) WHERE { ?i property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?b > ?t ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { resource:Liechtenstein property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q347
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?b ) WHERE { ?i property:P530 ?e . ?e rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?b > ?t ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { resource:Q347 property:P530 ?f . ?f rdf:type ontology:Q1048835 } } }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Liechtenstein
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?b ) WHERE { ?i property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?b > ?t ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { resource:Liechtenstein property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q34
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with around the same number of administrative territories as Sweden ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q34
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?z ) WHERE { ?a property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?z = ?l ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Q34 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } }
Sweden
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 Sweden
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 ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?z ) WHERE { ?a property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?z = ?l ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Sweden property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 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 Q17 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 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q34
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with around the same number of administrative territories as Sweden
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?z ) WHERE { ?a property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?z = ?l ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Q34 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey 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 Japan 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 Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and Poland have diplomatic relationships with around the same number of administrative territories as Sweden
Georgia Netherlands Poland
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 Sweden
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 ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?z ) WHERE { ?a property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?z = ?l ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Sweden property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P941
Q15617994 Q3895768
USER
How many administrative territories inspired around the same number of fictional locations as that administrative territory ?
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity fictional location
Comparative|Count over More/Less|Single entity type|Clarification
Q230
SYSTEM
Did you mean Georgia ?
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Did you mean Georgia ?
Georgia
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Netherlands. Could you tell me the answer for that?
(c(Q3895768),P941,c(Q15617994))
Q55
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
9
Q142 Q159 Q424 Q794 Q33 Q954 Q31 Q889 Q55
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
France Russia Cambodia Iran Finland Zimbabwe Belgium Afghanistan Netherlands
9
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q3015000 Q30
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with United States of America and are not the countries of citizenship of Danielle Juteau ?
AND((Q30,P530,c(Q1048835)), NOT((Q3015000,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q30
relation P530
action find
entity Q3015000
relation P27
type Q1048835
{'AND': [['Q30', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q3015000', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?p WHERE { resource:Q30 property:P530 ?p . MINUS { resource:Q3015000 property:P27 ?p } . ?p rdf:type ontology:Q1048835 }
Danielle Juteau United States of America
action filter_type
action difference
action find
entity United States of America
relation diplomatic relation
action find
entity Danielle Juteau
relation country of citizenship
type political territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Danielle Juteau', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?p WHERE { resource:United_States_of_America property:diplomatic_relation ?p . MINUS { resource:Danielle_Juteau property:country_of_citizenship ?p } . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
AND((Q30,P530,c(Q1048835)), NOT((Q3015000,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q30
relation P530
action find
entity Q3015000
relation P27
type Q1048835
[ANSWERS] have diplomatic relationships with United States of America and are not the countries of citizenship of Danielle Juteau
{'AND': [['Q30', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q3015000', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?p WHERE { resource:Q30 property:P530 ?p . MINUS { resource:Q3015000 property:P27 ?p } . ?p rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany have diplomatic relationships with United States of America and are not the countries of citizenship of Danielle Juteau
Australia Germany
action filter_type
action difference
action find
entity United States of America
relation diplomatic relation
action find
entity Danielle Juteau
relation country of citizenship
type political territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Danielle Juteau', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?p WHERE { resource:United_States_of_America property:diplomatic_relation ?p . MINUS { resource:Danielle_Juteau property:country_of_citizenship ?p } . ?p rdf:type ontology:political_territorial_entity }
[]