Simple Question (Direct)
Simple Question
Q76397
P20
Q56061
USER
Where did Eduard Zimmermann expire ?
(Q76397,P20,c(Q56061))
action filter_type
action find
entity Q76397
relation P20
type Q56061
['Q76397', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q76397 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Eduard Zimmermann
action filter_type
action find
entity Eduard Zimmermann
relation place of death
type administrative territorial entity
['Eduard Zimmermann', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Eduard_Zimmermann property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726
SYSTEM
Munich
Q1726
(Q76397,P20,c(Q56061))
action filter_type
action find
entity Q76397
relation P20
type Q56061
Eduard Zimmermann expired in [ANSWER]
['Q76397', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q76397 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Munich
Eduard Zimmermann expired in Munich
Munich
action filter_type
action find
entity Eduard Zimmermann
relation place of death
type administrative territorial entity
['Eduard Zimmermann', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Eduard_Zimmermann property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1726
P190
Q56061
USER
Which administrative territories are twin town of that one ?
(c(Q56061),P190,Q1726)
action filter_type
action find
entity Q1726
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q1726']
SELECT DISTINCT ?f WHERE { resource:Q1726 property:P190 ?f . ?f rdf:type ontology:Q56061 }
Munich
action filter_type
action find
entity Munich
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Munich']
SELECT DISTINCT ?f WHERE { resource:Munich property:sister_city ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1479 Q2028 Q23436
SYSTEM
Bordeaux, Verona, Edinburgh
Q48195 Q23436 Q121157 Q3921 Q2028 Q1479
(c(Q56061),P190,Q1726)
action filter_type
action find
entity Q1726
relation P190
type Q56061
[ANSWERS] are twin town of that one
[{'concept': 'Q56061'}, 'P190', 'Q1726']
SELECT DISTINCT ?f WHERE { resource:Q1726 property:P190 ?f . ?f rdf:type ontology:Q56061 }
Basra Edinburgh Mashhad Harare Verona Bordeaux
Bordeaux, Verona and Edinburgh are twin town of that one
Bordeaux Verona Edinburgh
action filter_type
action find
entity Munich
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Munich']
SELECT DISTINCT ?f WHERE { resource:Munich property:sister_city ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12403376 Q76397
P27
Q1048835
USER
Which political territories are the native countriesof Eduard Zimmermann or Abraham Chalfi ?
OR((Q76397,P27,c(Q1048835)), (Q12403376,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q76397
relation P27
action find
entity Q12403376
relation P27
type Q1048835
{'OR': [['Q76397', 'P27', {'concept': 'Q1048835'}], ['Q12403376', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . { { resource:Q12403376 property:P27 ?x } UNION { resource:Q76397 property:P27 ?x } } }
Abraham Chalfi Eduard Zimmermann
action filter_type
action union
action find
entity Eduard Zimmermann
relation country of citizenship
action find
entity Abraham Chalfi
relation country of citizenship
type political territorial entity
{'OR': [['Eduard Zimmermann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Abraham Chalfi', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . { { resource:Abraham_Chalfi property:country_of_citizenship ?x } UNION { resource:Eduard_Zimmermann property:country_of_citizenship ?x } } }
[]
political territorial entity
Q193714 Q183
SYSTEM
Mandatory Palestine, Germany
Q193714 Q183
OR((Q76397,P27,c(Q1048835)), (Q12403376,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q76397
relation P27
action find
entity Q12403376
relation P27
type Q1048835
[ANSWERS] are the native countriesof Eduard Zimmermann or Abraham Chalfi
{'OR': [['Q76397', 'P27', {'concept': 'Q1048835'}], ['Q12403376', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . { { resource:Q12403376 property:P27 ?x } UNION { resource:Q76397 property:P27 ?x } } }
Mandatory Palestine Germany
Mandatory Palestine and Germany are the native countriesof Eduard Zimmermann or Abraham Chalfi
Mandatory Palestine Germany
action filter_type
action union
action find
entity Eduard Zimmermann
relation country of citizenship
action find
entity Abraham Chalfi
relation country of citizenship
type political territorial entity
{'OR': [['Eduard Zimmermann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Abraham Chalfi', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . { { resource:Abraham_Chalfi property:country_of_citizenship ?x } UNION { resource:Eduard_Zimmermann property:country_of_citizenship ?x } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q15324 Q2221906 Q1048835
USER
Which political territories are located in around 1 bodies of water and geographic locations ?
(c(Q1048835),P706,c(Q15324)|c(Q2221906))
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q15324
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
value 1
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?b ) WHERE { { ?n property:P706 ?e . ?e rdf:type ontology:Q15324 . ?n rdf:type ontology:Q1048835 } UNION { ?n property:P706 ?e . ?n rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q2221906 } } GROUP BY ?n } . FILTER ( ?b = 1 ) }
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
value 1
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?b ) WHERE { { ?n property:located_on_terrain_feature ?e . ?e rdf:type ontology:body_of_water . ?n rdf:type ontology:political_territorial_entity } UNION { ?n property:located_on_terrain_feature ?e . ?n rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:geographic_location } } GROUP BY ?n } . FILTER ( ?b = 1 ) }
[]
body of water geographic location political territorial entity
Q766 Q778 Q9676
SYSTEM
Jamaica, The Bahamas, Isle of Man
Q13353 Q6139 Q168856 Q5785 Q25228 Q170213 Q766 Q9676 Q168159 Q18221 Q778 Q5700 Q25305
(c(Q1048835),P706,c(Q15324)|c(Q2221906))
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q15324
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
value 1
[ANSWERS] are located in around 1 bodies of water and geographic locations
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?b ) WHERE { { ?n property:P706 ?e . ?e rdf:type ontology:Q15324 . ?n rdf:type ontology:Q1048835 } UNION { ?n property:P706 ?e . ?n rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q2221906 } } GROUP BY ?n } . FILTER ( ?b = 1 ) }
Montserrat Havelland Chernivtsi Oblast Cayman Islands Anguilla Zakarpattia Oblast Jamaica Isle of Man Anglesey Turks and Caicos Islands The Bahamas Lapland British Virgin Islands
Jamaica, The Bahamas and Isle of Man are located in around 1 bodies of water and geographic locations
Jamaica The Bahamas Isle of Man
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
value 1
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?b ) WHERE { { ?n property:located_on_terrain_feature ?e . ?e rdf:type ontology:body_of_water . ?n rdf:type ontology:political_territorial_entity } UNION { ?n property:located_on_terrain_feature ?e . ?n rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:geographic_location } } GROUP BY ?n } . FILTER ( ?b = 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q191
P530
Q1048835 Q15617994
USER
Which administrative territories have ambassadorial relations with approximately the same number of political territories as Estonia ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q191
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?o ) WHERE { ?d property:P530 ?x . ?d rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q191 property:P530 ?u } } . FILTER ( ?o = ?r ) }
Estonia
action approx
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 Estonia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?o ) WHERE { ?d property:diplomatic_relation ?x . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Estonia property:diplomatic_relation ?u } } . FILTER ( ?o = ?r ) }
[]
political territorial entity designation for an administrative territorial entity
Q55 Q148 Q184
SYSTEM
Netherlands, People's Republic of China, Belarus
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q191
relation P530
type Q15617994
[ANSWERS] have ambassadorial relations with approximately the same number of political territories as Estonia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?o ) WHERE { ?d property:P530 ?x . ?d rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q191 property:P530 ?u } } . FILTER ( ?o = ?r ) }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands, People's Republic of China and Belarus have ambassadorial relations with approximately the same number of political territories as Estonia
Netherlands People's Republic of China Belarus
action approx
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 Estonia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?o ) WHERE { ?d property:diplomatic_relation ?x . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Estonia property:diplomatic_relation ?u } } . FILTER ( ?o = ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q238
P530
Q1048835 Q15617994
USER
And how about San Marino?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q238
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { resource:Q238 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?c = ?b ) . { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?c ) WHERE { ?d rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 . ?d property:P530 ?x } GROUP BY ?d } }
San Marino
action approx
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 San Marino
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { resource:San_Marino property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c = ?b ) . { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?c ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?x } GROUP BY ?d } }
[]
political territorial entity designation for an administrative territorial entity
Q55 Q148 Q184
SYSTEM
Netherlands, People's Republic of China, Belarus
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q238
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { resource:Q238 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?c = ?b ) . { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?c ) WHERE { ?d rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 . ?d property:P530 ?x } GROUP BY ?d } }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands People's Republic of China Belarus
action approx
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 San Marino
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { resource:San_Marino property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c = ?b ) . { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?c ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?x } GROUP BY ?d } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q19868397 Q183
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Germany and do Willy González belong to ?
AND((Q183,P530,c(Q15617994)), (Q19868397,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q19868397
relation P27
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q19868397', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { resource:Q183 property:P530 ?x . resource:Q19868397 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Willy González Germany
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Willy González
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Willy González', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { resource:Germany property:diplomatic_relation ?x . resource:Willy_González property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q414
SYSTEM
Argentina
Q414
AND((Q183,P530,c(Q15617994)), (Q19868397,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q19868397
relation P27
type Q15617994
[ANSWER] have diplomatic relationships with Germany and do Willy González belong to
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q19868397', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { resource:Q183 property:P530 ?x . resource:Q19868397 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Argentina
Argentina have diplomatic relationships with Germany and do Willy González belong to
Argentina
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Willy González
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Willy González', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { resource:Germany property:diplomatic_relation ?x . resource:Willy_González property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P27
Q5 Q15416
USER
How many humen or television programs are civilians of that administrative territory ?
(c(Q5),P27,Q414) (c(Q15416),P27,Q414) (c(Q5),P27,Q414) (c(Q15416),P27,Q414)
action count
action union
action filter_type
action find_reverse
entity Q414
relation P27
type Q5
action filter_type
action find_reverse
entity Q414
relation P27
type Q15416
[{'concept': 'Q5'}, 'P27', 'Q414'] [{'concept': 'Q15416'}, 'P27', 'Q414'] [{'concept': 'Q5'}, 'P27', 'Q414'] [{'concept': 'Q15416'}, 'P27', 'Q414']
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { ?k property:P27 resource:Q414 . ?k rdf:type ontology:Q5 } UNION { ?k property:P27 resource:Q414 . ?k rdf:type ontology:Q15416 } }
action count
action union
action filter_type
action find_reverse
entity Argentina
relation country of citizenship
type human
action filter_type
action find_reverse
entity Argentina
relation country of citizenship
type television program
[{'concept': 'human'}, 'country of citizenship', 'Argentina'] [{'concept': 'television program'}, 'country of citizenship', 'Argentina'] [{'concept': 'human'}, 'country of citizenship', 'Argentina'] [{'concept': 'television program'}, 'country of citizenship', 'Argentina']
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { ?k property:country_of_citizenship resource:Argentina . ?k rdf:type ontology:human } UNION { ?k property:country_of_citizenship resource:Argentina . ?k rdf:type ontology:television_program } }
[]
human television program
SYSTEM
2
Q5550561 Q6081160
(c(Q5),P27,Q414) (c(Q15416),P27,Q414) (c(Q5),P27,Q414) (c(Q15416),P27,Q414)
action count
action union
action filter_type
action find_reverse
entity Q414
relation P27
type Q5
action filter_type
action find_reverse
entity Q414
relation P27
type Q15416
[ANSWER]
[{'concept': 'Q5'}, 'P27', 'Q414'] [{'concept': 'Q15416'}, 'P27', 'Q414'] [{'concept': 'Q5'}, 'P27', 'Q414'] [{'concept': 'Q15416'}, 'P27', 'Q414']
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { ?k property:P27 resource:Q414 . ?k rdf:type ontology:Q5 } UNION { ?k property:P27 resource:Q414 . ?k rdf:type ontology:Q15416 } }
Estación Retiro Pocho La Pantera
2
action count
action union
action filter_type
action find_reverse
entity Argentina
relation country of citizenship
type human
action filter_type
action find_reverse
entity Argentina
relation country of citizenship
type television program
[{'concept': 'human'}, 'country of citizenship', 'Argentina'] [{'concept': 'television program'}, 'country of citizenship', 'Argentina'] [{'concept': 'human'}, 'country of citizenship', 'Argentina'] [{'concept': 'television program'}, 'country of citizenship', 'Argentina']
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { ?k property:country_of_citizenship resource:Argentina . ?k rdf:type ontology:human } UNION { ?k property:country_of_citizenship resource:Argentina . ?k rdf:type ontology:television_program } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2215304 Q148
P47 P17
Q15617994
USER
Which administrative territories share border with People's Republic of China and are Hazar Sumuch situated in ?
AND((Q148,P47,c(Q15617994)), (Q2215304,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q148
relation P47
action find
entity Q2215304
relation P17
type Q15617994
{'AND': [['Q148', 'P47', {'concept': 'Q15617994'}], ['Q2215304', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q148 property:P47 ?k . resource:Q2215304 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Hazar Sumuch People's Republic of China
action filter_type
action intersection
action find
entity People's Republic of China
relation shares border with
action find
entity Hazar Sumuch
relation country
type designation for an administrative territorial entity
{'AND': [["People's Republic of China", 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Hazar Sumuch', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:People's_Republic_of_China property:shares_border_with ?k . resource:Hazar_Sumuch property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q889
SYSTEM
Afghanistan
Q889
AND((Q148,P47,c(Q15617994)), (Q2215304,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q148
relation P47
action find
entity Q2215304
relation P17
type Q15617994
[ANSWER] share border with People's Republic of China and are Hazar Sumuch situated in
{'AND': [['Q148', 'P47', {'concept': 'Q15617994'}], ['Q2215304', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q148 property:P47 ?k . resource:Q2215304 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Afghanistan
Afghanistan share border with People's Republic of China and are Hazar Sumuch situated in
Afghanistan
action filter_type
action intersection
action find
entity People's Republic of China
relation shares border with
action find
entity Hazar Sumuch
relation country
type designation for an administrative territorial entity
{'AND': [["People's Republic of China", 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Hazar Sumuch', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:People's_Republic_of_China property:shares_border_with ?k . resource:Hazar_Sumuch property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]