Simple Question (Direct)
Simple Question
Q190731
P21
Q290
USER
Which sex does Shamil Basayev belong to ?
(Q190731,P21,c(Q290))
action filter_type
action find
entity Q190731
relation P21
type Q290
['Q190731', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q190731 property:P21 ?q . ?q rdf:type ontology:Q290 }
Shamil Basayev
action filter_type
action find
entity Shamil Basayev
relation gender
type sex
['Shamil Basayev', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Shamil_Basayev property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q190731,P21,c(Q290))
action filter_type
action find
entity Q190731
relation P21
type Q290
Shamil Basayev belongs to [ANSWER]
['Q190731', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q190731 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
Shamil Basayev belongs to male
male
action filter_type
action find
entity Shamil Basayev
relation gender
type sex
['Shamil Basayev', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Shamil_Basayev property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q190731
P140
Q874405
USER
What is the religious affiliation of Shamil Basayev ?
(Q190731,P140,c(Q874405))
action filter_type
action find
entity Q190731
relation P140
type Q874405
['Q190731', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?p WHERE { resource:Q190731 property:P140 ?p . ?p rdf:type ontology:Q874405 }
Shamil Basayev
action filter_type
action find
entity Shamil Basayev
relation religion
type social group
['Shamil Basayev', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?p WHERE { resource:Shamil_Basayev property:religion ?p . ?p rdf:type ontology:social_group }
[]
social group
Q432
SYSTEM
Islam
Q432
(Q190731,P140,c(Q874405))
action filter_type
action find
entity Q190731
relation P140
type Q874405
The religious affiliation of Shamil Basayev is of [ANSWER]
['Q190731', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?p WHERE { resource:Q190731 property:P140 ?p . ?p rdf:type ontology:Q874405 }
Islam
The religious affiliation of Shamil Basayev is of Islam
Islam
action filter_type
action find
entity Shamil Basayev
relation religion
type social group
['Shamil Basayev', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?p WHERE { resource:Shamil_Basayev property:religion ?p . ?p rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q190731
P27
Q15617994
USER
Which administrative territory does Shamil Basayev belong to ?
(Q190731,P27,c(Q15617994))
action filter_type
action find
entity Q190731
relation P27
type Q15617994
['Q190731', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q190731 property:P27 ?f }
Shamil Basayev
action filter_type
action find
entity Shamil Basayev
relation country of citizenship
type designation for an administrative territorial entity
['Shamil Basayev', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Shamil_Basayev property:country_of_citizenship ?f }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q190731,P27,c(Q15617994))
action filter_type
action find
entity Q190731
relation P27
type Q15617994
Shamil Basayev belongs to [ANSWER]
['Q190731', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q190731 property:P27 ?f }
Russia
Shamil Basayev belongs to Russia
Russia
action filter_type
action find
entity Shamil Basayev
relation country of citizenship
type designation for an administrative territorial entity
['Shamil Basayev', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Shamil_Basayev property:country_of_citizenship ?f }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3712982
Q15617994
USER
And how about Domenico Cortopassi?
(Q3712982,P27,c(Q15617994))
action filter_type
action find
entity Q3712982
relation P27
type Q15617994
['Q3712982', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q3712982 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Domenico Cortopassi
action filter_type
action find
entity Domenico Cortopassi
relation country of citizenship
type designation for an administrative territorial entity
['Domenico Cortopassi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Domenico_Cortopassi property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3712982,P27,c(Q15617994))
action filter_type
action find
entity Q3712982
relation P27
type Q15617994
[ANSWER]
['Q3712982', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q3712982 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Italy
Italy
action filter_type
action find
entity Domenico Cortopassi
relation country of citizenship
type designation for an administrative territorial entity
['Domenico Cortopassi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Domenico_Cortopassi property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories did approximately the same number of releases originate as that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q38
relation P495
type Q15617994
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?k ) WHERE { ?f property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q2031291 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Q38 property:P495 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?k = ?u ) }
action count
action approx
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Italy
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?k ) WHERE { ?f property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:release } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Italy property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k = ?u ) }
[]
designation for an administrative territorial entity release
SYSTEM
168
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 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(Q2031291),P495,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q38
relation P495
type Q15617994
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?k ) WHERE { ?f property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q2031291 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Q38 property:P495 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?k = ?u ) }
Yemen Panama Israel Costa Rica Sardinia Peru India 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
168
action count
action approx
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Italy
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?k ) WHERE { ?f property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:release } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Italy property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k = ?u ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P610
Q14524493
USER
Which is the highest peak of Russia ?
(Q159,P610,c(Q14524493))
action filter_type
action find
entity Q159
relation P610
type Q14524493
['Q159', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?d WHERE { resource:Q159 property:P610 ?d . ?d rdf:type ontology:Q14524493 }
Russia
action filter_type
action find
entity Russia
relation highest point
type terrain
['Russia', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?d WHERE { resource:Russia property:highest_point ?d . ?d rdf:type ontology:terrain }
[]
terrain
Q43105
SYSTEM
Mount Elbrus
Q43105
(Q159,P610,c(Q14524493))
action filter_type
action find
entity Q159
relation P610
type Q14524493
The highest peak of Russia is the [ANSWER]
['Q159', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?d WHERE { resource:Q159 property:P610 ?d . ?d rdf:type ontology:Q14524493 }
Mount Elbrus
The highest peak of Russia is the Mount Elbrus
Mount Elbrus
action filter_type
action find
entity Russia
relation highest point
type terrain
['Russia', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?d WHERE { resource:Russia property:highest_point ?d . ?d rdf:type ontology:terrain }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q967917
Q14524493
USER
And what about John Muir Trail?
(Q967917,P610,c(Q14524493))
action filter_type
action find
entity Q967917
relation P610
type Q14524493
['Q967917', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?q WHERE { resource:Q967917 property:P610 ?q . ?q rdf:type ontology:Q14524493 }
John Muir Trail
action filter_type
action find
entity John Muir Trail
relation highest point
type terrain
['John Muir Trail', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?q WHERE { resource:John_Muir_Trail property:highest_point ?q . ?q rdf:type ontology:terrain }
[]
terrain
Q235539
SYSTEM
Mount Whitney
Q235539
(Q967917,P610,c(Q14524493))
action filter_type
action find
entity Q967917
relation P610
type Q14524493
[ANSWER]
['Q967917', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?q WHERE { resource:Q967917 property:P610 ?q . ?q rdf:type ontology:Q14524493 }
Mount Whitney
Mount Whitney
action filter_type
action find
entity John Muir Trail
relation highest point
type terrain
['John Muir Trail', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?q WHERE { resource:John_Muir_Trail property:highest_point ?q . ?q rdf:type ontology:terrain }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P3173
Q14524493 Q811979
USER
Which architectural structures have view to max number of terrains ?
(c(Q811979),P3173,c(Q14524493))
action argmax
action find_tuple_counts
relation P3173
type Q811979
type Q14524493
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q14524493'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?a ) { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?k ) WHERE { ?r property:P3173 ?e . ?r rdf:type ontology:Q811979 . ?e rdf:type ontology:Q14524493 } GROUP BY ?r } } . FILTER ( ?j = ?a ) . { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?j ) WHERE { ?p rdf:type ontology:Q811979 . ?c rdf:type ontology:Q14524493 . ?p property:P3173 ?c } GROUP BY ?p } }
action argmax
action find_tuple_counts
relation offers view on
type architectural structure
type terrain
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'terrain'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?a ) { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?k ) WHERE { ?r property:offers_view_on ?e . ?r rdf:type ontology:architectural_structure . ?e rdf:type ontology:terrain } GROUP BY ?r } } . FILTER ( ?j = ?a ) . { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?j ) WHERE { ?p rdf:type ontology:architectural_structure . ?c rdf:type ontology:terrain . ?p property:offers_view_on ?c } GROUP BY ?p } }
[]
terrain architectural structure
Q3108318 Q7088437 Q2433474
SYSTEM
Glacier Point, Olmsted Point, Tunnel View
Q3108318 Q7088437 Q2433474
(c(Q811979),P3173,c(Q14524493))
action argmax
action find_tuple_counts
relation P3173
type Q811979
type Q14524493
[ANSWERS] have view to max number of terrains
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q14524493'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?a ) { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?k ) WHERE { ?r property:P3173 ?e . ?r rdf:type ontology:Q811979 . ?e rdf:type ontology:Q14524493 } GROUP BY ?r } } . FILTER ( ?j = ?a ) . { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?j ) WHERE { ?p rdf:type ontology:Q811979 . ?c rdf:type ontology:Q14524493 . ?p property:P3173 ?c } GROUP BY ?p } }
Glacier Point Olmsted Point Tunnel View
Glacier Point, Olmsted Point and Tunnel View have view to max number of terrains
Glacier Point Olmsted Point Tunnel View
action argmax
action find_tuple_counts
relation offers view on
type architectural structure
type terrain
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'terrain'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?a ) { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?k ) WHERE { ?r property:offers_view_on ?e . ?r rdf:type ontology:architectural_structure . ?e rdf:type ontology:terrain } GROUP BY ?r } } . FILTER ( ?j = ?a ) . { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?j ) WHERE { ?p rdf:type ontology:architectural_structure . ?c rdf:type ontology:terrain . ?p property:offers_view_on ?c } GROUP BY ?p } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q159
P530
Q183366 Q5589178
USER
How many territories or regimes have a diplomatic relationship with Russia ?
(Q159,P530,c(Q183366)) (Q159,P530,c(Q5589178))
action count
action union
action filter_type
action find
entity Q159
relation P530
type Q183366
action filter_type
action find
entity Q159
relation P530
type Q5589178
['Q159', 'P530', {'concept': 'Q183366'}] ['Q159', 'P530', {'concept': 'Q5589178'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { ?v rdf:type ontology:Q183366 . resource:Q159 property:P530 ?v } UNION { resource:Q159 property:P530 ?v . ?v rdf:type ontology:Q5589178 } }
Russia
action count
action union
action filter_type
action find
entity Russia
relation diplomatic relation
type territory
action filter_type
action find
entity Russia
relation diplomatic relation
type regime
['Russia', 'diplomatic relation', {'concept': 'territory'}] ['Russia', 'diplomatic relation', {'concept': 'regime'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { ?v rdf:type ontology:territory . resource:Russia property:diplomatic_relation ?v } UNION { resource:Russia property:diplomatic_relation ?v . ?v rdf:type ontology:regime } }
[]
territory regime
SYSTEM
2
Q23427 Q23334
(Q159,P530,c(Q183366)) (Q159,P530,c(Q5589178))
action count
action union
action filter_type
action find
entity Q159
relation P530
type Q183366
action filter_type
action find
entity Q159
relation P530
type Q5589178
[ANSWER]
['Q159', 'P530', {'concept': 'Q183366'}] ['Q159', 'P530', {'concept': 'Q5589178'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { ?v rdf:type ontology:Q183366 . resource:Q159 property:P530 ?v } UNION { resource:Q159 property:P530 ?v . ?v rdf:type ontology:Q5589178 } }
South Ossetia Abkhazia
2
action count
action union
action filter_type
action find
entity Russia
relation diplomatic relation
type territory
action filter_type
action find
entity Russia
relation diplomatic relation
type regime
['Russia', 'diplomatic relation', {'concept': 'territory'}] ['Russia', 'diplomatic relation', {'concept': 'regime'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { ?v rdf:type ontology:territory . resource:Russia property:diplomatic_relation ?v } UNION { resource:Russia property:diplomatic_relation ?v . ?v rdf:type ontology:regime } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P463
Q484652
USER
Which international organizations were Italy a member of ?
(Q38,P463,c(Q484652))
action filter_type
action find
entity Q38
relation P463
type Q484652
['Q38', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?f WHERE { resource:Q38 property:P463 ?f . ?f rdf:type ontology:Q484652 }
Italy
action filter_type
action find
entity Italy
relation member of
type international organization
['Italy', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?f WHERE { resource:Italy property:member_of ?f . ?f rdf:type ontology:international_organization }
[]
international organization
Q81299 Q19771 Q42262
SYSTEM
Organization for Security and Co-operation in Europe, G20, European Space Agency
Q81299 Q1065 Q826700 Q188822 Q47488 Q7184 Q42262 Q472311 Q605326 Q1480793 Q201054 Q7804 Q842490 Q19771 Q54129 Q1411881 Q17495 Q192177 Q170424 Q37143 Q176815 Q182000 Q8475 Q233611 Q1043527 Q1045198
(Q38,P463,c(Q484652))
action filter_type
action find
entity Q38
relation P463
type Q484652
[ANSWERS]
['Q38', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?f WHERE { resource:Q38 property:P463 ?f . ?f rdf:type ontology:Q484652 }
Organization for Security and Co-operation in Europe United Nations International Energy Agency Asian Development Bank International Criminal Court North Atlantic Treaty Organisation European Space Agency International Organization for Migration World Customs Organization Nuclear Suppliers Group International Maritime Organization International Monetary Fund Organisation for the Prohibition of Chemical Weapons G20 International Labour Organization Group of Ten Universal Postal Union Union for the Mediterranean World Meteorological Organization G8 Inter-Parliamentary Union United Nations Conference on Trade and Development Interpol International Hydrographic Organization Multilateral Investment Guarantee Agency Permanent Court of Arbitration
Which international organizations were Italy a member of
Organization for Security and Co-operation in Europe G20 European Space Agency
action filter_type
action find
entity Italy
relation member of
type international organization
['Italy', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?f WHERE { resource:Italy property:member_of ?f . ?f rdf:type ontology:international_organization }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q38
Q56061
USER
And which administrative territory?
(Q38,P463,c(Q56061))
action filter_type
action find
entity Q38
relation P463
type Q56061
['Q38', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q38 property:P463 ?a . ?a rdf:type ontology:Q56061 }
Italy
action filter_type
action find
entity Italy
relation member of
type administrative territorial entity
['Italy', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Italy property:member_of ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q458
SYSTEM
European Union
Q458
(Q38,P463,c(Q56061))
action filter_type
action find
entity Q38
relation P463
type Q56061
[ANSWER]
['Q38', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q38 property:P463 ?a . ?a rdf:type ontology:Q56061 }
European Union
European Union
action filter_type
action find
entity Italy
relation member of
type administrative territorial entity
['Italy', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Italy property:member_of ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q1048835 Q15617994
USER
Which administrative territories have ambassadorial relations with exactly 14 administrative territories or political territories ?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action equal
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 14
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) ?l WHERE { ?v rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?l } . FILTER ( ?g = 14 ) }
action equal
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 14
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) ?l WHERE { ?v rdf:type ?w . VALUES ( ?w ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?l } . FILTER ( ?g = 14 ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q858
SYSTEM
Syria
Q858
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action equal
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 14
[ANSWER] have ambassadorial relations with exactly 14 administrative territories or political territories
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) ?l WHERE { ?v rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?l } . FILTER ( ?g = 14 ) }
Syria
Syria have ambassadorial relations with exactly 14 administrative territories or political territories
Syria
action equal
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 14
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) ?l WHERE { ?v rdf:type ?w . VALUES ( ?w ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?l } . FILTER ( ?g = 14 ) }
[]