Simple Question (Direct)
Simple Question
Q241590
P21
Q290
USER
Which sex does Artur Ullrich belong to ?
(Q241590,P21,c(Q290))
action filter_type
action find
entity Q241590
relation P21
type Q290
['Q241590', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q241590 property:P21 ?n . ?n rdf:type ontology:Q290 }
Artur Ullrich
action filter_type
action find
entity Artur Ullrich
relation gender
type sex
['Artur Ullrich', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Artur_Ullrich property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q241590,P21,c(Q290))
action filter_type
action find
entity Q241590
relation P21
type Q290
Artur Ullrich belongs to [ANSWER]
['Q241590', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q241590 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
Artur Ullrich belongs to male
male
action filter_type
action find
entity Artur Ullrich
relation gender
type sex
['Artur Ullrich', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Artur_Ullrich property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q241590
P54
Q1194951
USER
Which national sports team is Artur Ullrich a member of ?
(Q241590,P54,c(Q1194951))
action filter_type
action find
entity Q241590
relation P54
type Q1194951
['Q241590', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?y WHERE { resource:Q241590 property:P54 ?y . ?y rdf:type ontology:Q1194951 }
Artur Ullrich
action filter_type
action find
entity Artur Ullrich
relation member of sports team
type national sports team
['Artur Ullrich', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?y WHERE { resource:Artur_Ullrich property:member_of_sports_team ?y . ?y rdf:type ontology:national_sports_team }
[]
national sports team
Q152424
SYSTEM
East Germany national football team
Q152424
(Q241590,P54,c(Q1194951))
action filter_type
action find
entity Q241590
relation P54
type Q1194951
The [ANSWER] is Artur Ullrich a member of
['Q241590', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?y WHERE { resource:Q241590 property:P54 ?y . ?y rdf:type ontology:Q1194951 }
East Germany national football team
The East Germany national football team is Artur Ullrich a member of
East Germany national football team
action filter_type
action find
entity Artur Ullrich
relation member of sports team
type national sports team
['Artur Ullrich', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?y WHERE { resource:Artur_Ullrich property:member_of_sports_team ?y . ?y rdf:type ontology:national_sports_team }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2325230
Q1194951
USER
And what about Max Tobias?
(Q2325230,P54,c(Q1194951))
action filter_type
action find
entity Q2325230
relation P54
type Q1194951
['Q2325230', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?d WHERE { resource:Q2325230 property:P54 ?d . ?d rdf:type ontology:Q1194951 }
Max Tobias
action filter_type
action find
entity Max Tobias
relation member of sports team
type national sports team
['Max Tobias', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?d WHERE { resource:Max_Tobias property:member_of_sports_team ?d . ?d rdf:type ontology:national_sports_team }
[]
national sports team
Q166776
SYSTEM
Belgium national football team
Q166776
(Q2325230,P54,c(Q1194951))
action filter_type
action find
entity Q2325230
relation P54
type Q1194951
[ANSWER]
['Q2325230', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?d WHERE { resource:Q2325230 property:P54 ?d . ?d rdf:type ontology:Q1194951 }
Belgium national football team
Belgium national football team
action filter_type
action find
entity Max Tobias
relation member of sports team
type national sports team
['Max Tobias', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?d WHERE { resource:Max_Tobias property:member_of_sports_team ?d . ?d rdf:type ontology:national_sports_team }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6145637 Q241590
P27
Q1048835
USER
Which political territories are the countries of citizenship of Artur Ullrich or James Williams ?
OR((Q241590,P27,c(Q1048835)), (Q6145637,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q241590
relation P27
action find
entity Q6145637
relation P27
type Q1048835
{'OR': [['Q241590', 'P27', {'concept': 'Q1048835'}], ['Q6145637', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . { { resource:Q241590 property:P27 ?m } UNION { resource:Q6145637 property:P27 ?m } } }
James Williams Artur Ullrich
action filter_type
action union
action find
entity Artur Ullrich
relation country of citizenship
action find
entity James Williams
relation country of citizenship
type political territorial entity
{'OR': [['Artur Ullrich', 'country of citizenship', {'concept': 'political territorial entity'}], ['James Williams', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . { { resource:Artur_Ullrich property:country_of_citizenship ?m } UNION { resource:James_Williams property:country_of_citizenship ?m } } }
[]
political territorial entity
Q16 Q183
SYSTEM
Canada, Germany
Q16 Q183
OR((Q241590,P27,c(Q1048835)), (Q6145637,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q241590
relation P27
action find
entity Q6145637
relation P27
type Q1048835
[ANSWERS] are the countries of citizenship of Artur Ullrich or James Williams
{'OR': [['Q241590', 'P27', {'concept': 'Q1048835'}], ['Q6145637', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . { { resource:Q241590 property:P27 ?m } UNION { resource:Q6145637 property:P27 ?m } } }
Canada Germany
Canada and Germany are the countries of citizenship of Artur Ullrich or James Williams
Canada Germany
action filter_type
action union
action find
entity Artur Ullrich
relation country of citizenship
action find
entity James Williams
relation country of citizenship
type political territorial entity
{'OR': [['Artur Ullrich', 'country of citizenship', {'concept': 'political territorial entity'}], ['James Williams', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . { { resource:Artur_Ullrich property:country_of_citizenship ?m } UNION { resource:James_Williams property:country_of_citizenship ?m } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q17068905 Q183
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with Germany and are Lingojigudem situated in ?
AND((Q183,P530,c(Q15617994)), (Q17068905,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q17068905
relation P17
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q17068905', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { resource:Q17068905 property:P17 ?x . resource:Q183 property:P530 ?x . ?x rdf:type ontology:Q15617994 }
Lingojigudem Germany
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Lingojigudem
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Lingojigudem', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { resource:Lingojigudem property:country ?x . resource:Germany property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
AND((Q183,P530,c(Q15617994)), (Q17068905,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q17068905
relation P17
type Q15617994
[ANSWER] holds diplomatic relationship with Germany and are Lingojigudem situated in
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q17068905', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { resource:Q17068905 property:P17 ?x . resource:Q183 property:P530 ?x . ?x rdf:type ontology:Q15617994 }
India
India holds diplomatic relationship with Germany and are Lingojigudem situated in
India
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Lingojigudem
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Lingojigudem', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { resource:Lingojigudem property:country ?x . resource:Germany property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2088357 Q838948
USER
Which administrative territories did less number of musical ensembles and works of art originate than that administrative territory ?
(c(Q2088357)|c(Q838948),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q668
relation P495
type Q2088357
type Q838948
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?z ) WHERE { { ?k property:P495 ?x . ?x rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q2088357 } UNION { ?k property:P495 ?x . ?x rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q838948 } } GROUP BY ?x } . FILTER ( ?z < ?j ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { ?s property:P495 resource:Q668 . { ?s rdf:type ?i . VALUES ( ?i ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } } } }
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity India
relation country of origin
type musical ensemble
type work of art
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?z ) WHERE { { ?k property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:musical_ensemble } UNION { ?k property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:work_of_art } } GROUP BY ?x } . FILTER ( ?z < ?j ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { ?s property:country_of_origin resource:India . { ?s rdf:type ?i . VALUES ( ?i ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } } } }
[]
designation for an administrative territorial entity musical ensemble work of art
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2088357)|c(Q838948),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q668
relation P495
type Q2088357
type Q838948
[ANSWERS] less number of musical ensembles and works of art originated than that administrative territory
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?z ) WHERE { { ?k property:P495 ?x . ?x rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q2088357 } UNION { ?k property:P495 ?x . ?x rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q838948 } } GROUP BY ?x } . FILTER ( ?z < ?j ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { ?s property:P495 resource:Q668 . { ?s rdf:type ?i . VALUES ( ?i ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } } } }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland 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 Chile 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 Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy, Brazil and Georgia less number of musical ensembles and works of art originated than that administrative territory
Italy Brazil Georgia
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity India
relation country of origin
type musical ensemble
type work of art
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?z ) WHERE { { ?k property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:musical_ensemble } UNION { ?k property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:work_of_art } } GROUP BY ?x } . FILTER ( ?z < ?j ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { ?s property:country_of_origin resource:India . { ?s rdf:type ?i . VALUES ( ?i ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } } } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q102935 Q241590
P27
Q1048835
USER
Which political territories are Artur Ullrich and Hannes Wagner a civilian of ?
AND((Q241590,P27,c(Q1048835)), (Q102935,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q241590
relation P27
action find
entity Q102935
relation P27
type Q1048835
{'AND': [['Q241590', 'P27', {'concept': 'Q1048835'}], ['Q102935', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { resource:Q241590 property:P27 ?s . resource:Q102935 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Hannes Wagner Artur Ullrich
action filter_type
action intersection
action find
entity Artur Ullrich
relation country of citizenship
action find
entity Hannes Wagner
relation country of citizenship
type political territorial entity
{'AND': [['Artur Ullrich', 'country of citizenship', {'concept': 'political territorial entity'}], ['Hannes Wagner', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Artur_Ullrich property:country_of_citizenship ?s . resource:Hannes_Wagner property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q241590,P27,c(Q1048835)), (Q102935,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q241590
relation P27
action find
entity Q102935
relation P27
type Q1048835
[ANSWER] is Artur Ullrich and Hannes Wagner a civilian of
{'AND': [['Q241590', 'P27', {'concept': 'Q1048835'}], ['Q102935', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { resource:Q241590 property:P27 ?s . resource:Q102935 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Germany
Germany is Artur Ullrich and Hannes Wagner a civilian of
Germany
action filter_type
action intersection
action find
entity Artur Ullrich
relation country of citizenship
action find
entity Hannes Wagner
relation country of citizenship
type political territorial entity
{'AND': [['Artur Ullrich', 'country of citizenship', {'concept': 'political territorial entity'}], ['Hannes Wagner', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Artur_Ullrich property:country_of_citizenship ?s . resource:Hannes_Wagner property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q668
P136
Q2342494 Q2088357
USER
How many collectables and musical ensembles have India as their type ?
(c(Q2342494),P136,Q668) (c(Q2088357),P136,Q668)
action count
action union
action filter_type
action find_reverse
entity Q668
relation P136
type Q2342494
action filter_type
action find_reverse
entity Q668
relation P136
type Q2088357
[{'concept': 'Q2342494'}, 'P136', 'Q668'] [{'concept': 'Q2088357'}, 'P136', 'Q668']
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { ?m property:P136 resource:Q668 . ?m rdf:type ontology:Q2342494 } UNION { ?m property:P136 resource:Q668 . ?m rdf:type ontology:Q2088357 } }
India
action count
action union
action filter_type
action find_reverse
entity India
relation genre
type collectable
action filter_type
action find_reverse
entity India
relation genre
type musical ensemble
[{'concept': 'collectable'}, 'genre', 'India'] [{'concept': 'musical ensemble'}, 'genre', 'India']
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { ?m property:genre resource:India . ?m rdf:type ontology:collectable } UNION { ?m property:genre resource:India . ?m rdf:type ontology:musical_ensemble } }
[]
collectable musical ensemble
SYSTEM
1 collectables and 1 musical ensembles
Q5520726 Q12831
(c(Q2342494),P136,Q668) (c(Q2088357),P136,Q668)
action count
action union
action filter_type
action find_reverse
entity Q668
relation P136
type Q2342494
action filter_type
action find_reverse
entity Q668
relation P136
type Q2088357
[ANSWER]
[{'concept': 'Q2342494'}, 'P136', 'Q668'] [{'concept': 'Q2088357'}, 'P136', 'Q668']
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { ?m property:P136 resource:Q668 . ?m rdf:type ontology:Q2342494 } UNION { ?m property:P136 resource:Q668 . ?m rdf:type ontology:Q2088357 } }
Gandhi the Man Gossip
1 collectables and 1 musical ensembles
action count
action union
action filter_type
action find_reverse
entity India
relation genre
type collectable
action filter_type
action find_reverse
entity India
relation genre
type musical ensemble
[{'concept': 'collectable'}, 'genre', 'India'] [{'concept': 'musical ensemble'}, 'genre', 'India']
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { ?m property:genre resource:India . ?m rdf:type ontology:collectable } UNION { ?m property:genre resource:India . ?m rdf:type ontology:musical_ensemble } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1611733 Q6145637
P47 P27
Q1048835
USER
Which political territories are the countries of citizenship of James Williams or are bordered by Santa Cruz de Marchena ?
OR((Q6145637,P27,c(Q1048835)), (Q1611733,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q6145637
relation P27
action find
entity Q1611733
relation P47
type Q1048835
{'OR': [['Q6145637', 'P27', {'concept': 'Q1048835'}], ['Q1611733', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q1611733 property:P47 ?x } UNION { resource:Q6145637 property:P27 ?x } } . ?x rdf:type ontology:Q1048835 }
Santa Cruz de Marchena James Williams
action filter_type
action union
action find
entity James Williams
relation country of citizenship
action find
entity Santa Cruz de Marchena
relation shares border with
type political territorial entity
{'OR': [['James Williams', 'country of citizenship', {'concept': 'political territorial entity'}], ['Santa Cruz de Marchena', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Santa_Cruz_de_Marchena property:shares_border_with ?x } UNION { resource:James_Williams property:country_of_citizenship ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1358171 Q1358058 Q1157982 Q16 Q1611790 Q1444150 Q1444197
SYSTEM
Gérgal, Bentarique, Íllar, Canada, Santa Fe de Mondújar, Alboloduy, Alsodux
Q1358171 Q1358058 Q1157982 Q16 Q1611790 Q1444150 Q1444197
OR((Q6145637,P27,c(Q1048835)), (Q1611733,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q6145637
relation P27
action find
entity Q1611733
relation P47
type Q1048835
[ANSWERS] are the countries of citizenship of James Williams or are bordered by Santa Cruz de Marchena
{'OR': [['Q6145637', 'P27', {'concept': 'Q1048835'}], ['Q1611733', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q1611733 property:P47 ?x } UNION { resource:Q6145637 property:P27 ?x } } . ?x rdf:type ontology:Q1048835 }
Gérgal Bentarique Íllar Canada Santa Fe de Mondújar Alboloduy Alsodux
Gérgal, Bentarique, Íllar, Canada, Santa Fe de Mondújar, Alboloduy and Alsodux are the countries of citizenship of James Williams or are bordered by Santa Cruz de Marchena
Gérgal Bentarique Íllar Canada Santa Fe de Mondújar Alboloduy Alsodux
action filter_type
action union
action find
entity James Williams
relation country of citizenship
action find
entity Santa Cruz de Marchena
relation shares border with
type political territorial entity
{'OR': [['James Williams', 'country of citizenship', {'concept': 'political territorial entity'}], ['Santa Cruz de Marchena', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Santa_Cruz_de_Marchena property:shares_border_with ?x } UNION { resource:James_Williams property:country_of_citizenship ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q183
P530
Q1048835 Q1048835
USER
Which political territories have tactful political relations with around the same number of political territories as Germany ?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?i ) WHERE { ?e property:P530 ?o . ?e rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { ?v rdf:type ontology:Q1048835 . resource:Q183 property:P530 ?v } } . FILTER ( ?i = ?k ) }
Germany
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?i ) WHERE { ?e property:diplomatic_relation ?o . ?e rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { ?v rdf:type ontology:political_territorial_entity . resource:Germany property:diplomatic_relation ?v } } . FILTER ( ?i = ?k ) }
[]
political territorial entity political territorial entity
Q183 Q16
SYSTEM
Germany, Canada
Q183 Q16
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[ANSWERS] have tactful political relations with around the same number of political territories as Germany
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?i ) WHERE { ?e property:P530 ?o . ?e rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { ?v rdf:type ontology:Q1048835 . resource:Q183 property:P530 ?v } } . FILTER ( ?i = ?k ) }
Germany Canada
Germany and Canada have tactful political relations with around the same number of political territories as Germany
Germany Canada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?i ) WHERE { ?e property:diplomatic_relation ?o . ?e rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { ?v rdf:type ontology:political_territorial_entity . resource:Germany property:diplomatic_relation ?v } } . FILTER ( ?i = ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q781
P530
Q1048835 Q1048835
USER
And how about Antigua and Barbuda?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?o ) WHERE { ?r property:P530 ?t . ?r rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?o = ?w ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Q781 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } }
Antigua and Barbuda
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?o ) WHERE { ?r property:diplomatic_relation ?t . ?r rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?o = ?w ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?o ) WHERE { ?r property:P530 ?t . ?r rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?o = ?w ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Q781 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark Austria New Zealand
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?o ) WHERE { ?r property:diplomatic_relation ?t . ?r rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?o = ?w ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } }
[]