Simple Question (Direct)
Simple Question
Q1395558
P21
Q290
USER
Which sex does Rustem Khamitov belong to ?
(Q1395558,P21,c(Q290))
action filter_type
action find
entity Q1395558
relation P21
type Q290
['Q1395558', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q1395558 property:P21 ?s . ?s rdf:type ontology:Q290 }
Rustem Khamitov
action filter_type
action find
entity Rustem Khamitov
relation gender
type sex
['Rustem Khamitov', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Rustem_Khamitov property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1395558,P21,c(Q290))
action filter_type
action find
entity Q1395558
relation P21
type Q290
Rustem Khamitov belongs to [ANSWER]
['Q1395558', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q1395558 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
Rustem Khamitov belongs to male
male
action filter_type
action find
entity Rustem Khamitov
relation gender
type sex
['Rustem Khamitov', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Rustem_Khamitov property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1395558
P512
Q3412758
USER
What degree does Rustem Khamitov hold ?
(Q1395558,P512,c(Q3412758))
action filter_type
action find
entity Q1395558
relation P512
type Q3412758
['Q1395558', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?d WHERE { resource:Q1395558 property:P512 ?d . ?d rdf:type ontology:Q3412758 }
Rustem Khamitov
action filter_type
action find
entity Rustem Khamitov
relation academic degree
type qualification
['Rustem Khamitov', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?d WHERE { resource:Rustem_Khamitov property:academic_degree ?d . ?d rdf:type ontology:qualification }
[]
qualification
Q17281125
SYSTEM
Doktor Nauk in Engineering
Q17281125
(Q1395558,P512,c(Q3412758))
action filter_type
action find
entity Q1395558
relation P512
type Q3412758
Rustem Khamitov holds a [ANSWER]
['Q1395558', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?d WHERE { resource:Q1395558 property:P512 ?d . ?d rdf:type ontology:Q3412758 }
Doktor Nauk in Engineering
Rustem Khamitov holds a Doktor Nauk in Engineering
Doktor Nauk in Engineering
action filter_type
action find
entity Rustem Khamitov
relation academic degree
type qualification
['Rustem Khamitov', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?d WHERE { resource:Rustem_Khamitov property:academic_degree ?d . ?d rdf:type ontology:qualification }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2163272
Q3412758
USER
And what about Rolf Breitenstein?
(Q2163272,P512,c(Q3412758))
action filter_type
action find
entity Q2163272
relation P512
type Q3412758
['Q2163272', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?p WHERE { resource:Q2163272 property:P512 ?p . ?p rdf:type ontology:Q3412758 }
Rolf Breitenstein
action filter_type
action find
entity Rolf Breitenstein
relation academic degree
type qualification
['Rolf Breitenstein', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?p WHERE { resource:Rolf_Breitenstein property:academic_degree ?p . ?p rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q2163272,P512,c(Q3412758))
action filter_type
action find
entity Q2163272
relation P512
type Q3412758
[ANSWER]
['Q2163272', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?p WHERE { resource:Q2163272 property:P512 ?p . ?p rdf:type ontology:Q3412758 }
doctoral degree
doctoral degree
action filter_type
action find
entity Rolf Breitenstein
relation academic degree
type qualification
['Rolf Breitenstein', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?p WHERE { resource:Rolf_Breitenstein property:academic_degree ?p . ?p rdf:type ontology:qualification }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q8356 Q2163272
P47 P27
Q1048835
USER
Which political territories are the countries of citizenship of Rolf Breitenstein or are bordered by Valladolid ?
OR((Q2163272,P27,c(Q1048835)), (Q8356,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q2163272
relation P27
action find
entity Q8356
relation P47
type Q1048835
{'OR': [['Q2163272', 'P27', {'concept': 'Q1048835'}], ['Q8356', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q2163272 property:P27 ?b } UNION { resource:Q8356 property:P47 ?b } } . ?b rdf:type ontology:Q1048835 }
Valladolid Rolf Breitenstein
action filter_type
action union
action find
entity Rolf Breitenstein
relation country of citizenship
action find
entity Valladolid
relation shares border with
type political territorial entity
{'OR': [['Rolf Breitenstein', 'country of citizenship', {'concept': 'political territorial entity'}], ['Valladolid', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Rolf_Breitenstein property:country_of_citizenship ?b } UNION { resource:Valladolid property:shares_border_with ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1907118 Q1768521 Q1766715 Q367842 Q1651719 Q1919463 Q1651705 Q986572 Q949199 Q1921076
SYSTEM
Some of them are Villalba de los Alcores, Cistérniga, Viana de Cega, Laguna de Duero, Torrelobatón, Peñaflor de Hornija, Fuensaldaña, Simancas, Boecillo, Ciguñuela
Q949199 Q183 Q1651719 Q367842 Q1921076 Q1768521 Q1651671 Q1650608 Q1651677 Q1769167 Q1907020 Q1916474 Q1766715 Q965817 Q1919532 Q1919495 Q968763 Q1651705 Q986572 Q1648251 Q1651722 Q1919463 Q927038 Q1907118 Q1919502
OR((Q2163272,P27,c(Q1048835)), (Q8356,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q2163272
relation P27
action find
entity Q8356
relation P47
type Q1048835
[ANSWERS] are the countries of citizenship of Rolf Breitenstein or are bordered by Valladolid
{'OR': [['Q2163272', 'P27', {'concept': 'Q1048835'}], ['Q8356', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q2163272 property:P27 ?b } UNION { resource:Q8356 property:P47 ?b } } . ?b rdf:type ontology:Q1048835 }
Boecillo Germany Torrelobatón Laguna de Duero Ciguñuela Cistérniga Villanubla Cabezón de Pisuerga Arroyo de la Encomienda Cigales Robladillo Castronuevo de Esgueva Viana de Cega Renedo de Esgueva Mucientes Valdenebro de los Valles Santovenia de Pisuerga Fuensaldaña Simancas Medina de Rioseco Villanueva de Duero Peñaflor de Hornija Zaratán Villalba de los Alcores La Mudarra
Villalba de los Alcores, Cistérniga, Viana de Cega, Laguna de Duero, Torrelobatón, Peñaflor de Hornija, Fuensaldaña, Simancas, Boecillo and Ciguñuela are the countries of citizenship of Rolf Breitenstein or are bordered by Valladolid
Villalba de los Alcores Cistérniga Viana de Cega Laguna de Duero Torrelobatón Peñaflor de Hornija Fuensaldaña Simancas Boecillo Ciguñuela
action filter_type
action union
action find
entity Rolf Breitenstein
relation country of citizenship
action find
entity Valladolid
relation shares border with
type political territorial entity
{'OR': [['Rolf Breitenstein', 'country of citizenship', {'concept': 'political territorial entity'}], ['Valladolid', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Rolf_Breitenstein property:country_of_citizenship ?b } UNION { resource:Valladolid property:shares_border_with ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q40
P530
Q1048835 Q1048835
USER
Which political territories are known to have diplomatic connections with around the same number of political territories as Austria ?
(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 Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?x ) WHERE { ?u property:P530 ?n . ?u rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { resource:Q40 property:P530 ?d . ?d rdf:type ontology:Q1048835 } } . FILTER ( ?x = ?b ) }
Austria
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 Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?x ) WHERE { ?u property:diplomatic_relation ?n . ?u rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { resource:Austria property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity } } . FILTER ( ?x = ?b ) }
[]
political territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 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 Q40
relation P530
type Q1048835
[ANSWERS] are known to have diplomatic connections with around the same number of political territories as Austria
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?x ) WHERE { ?u property:P530 ?n . ?u rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { resource:Q40 property:P530 ?d . ?d rdf:type ontology:Q1048835 } } . FILTER ( ?x = ?b ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria are known to have diplomatic connections with around the same number of political territories as Austria
Denmark Canada Austria
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 Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?x ) WHERE { ?u property:diplomatic_relation ?n . ?u rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { resource:Austria property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity } } . FILTER ( ?x = ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q183
P530
Q1048835 Q1048835
USER
And how about 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 ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?g ) WHERE { ?d property:P530 ?u . ?d rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Q183 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } . FILTER ( ?g = ?f ) }
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 ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?g ) WHERE { ?d property:diplomatic_relation ?u . ?d rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Germany property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } . FILTER ( ?g = ?f ) }
[]
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]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?g ) WHERE { ?d property:P530 ?u . ?d rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Q183 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } . FILTER ( ?g = ?f ) }
Germany Canada
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 ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?g ) WHERE { ?d property:diplomatic_relation ?u . ?d rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Germany property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } . FILTER ( ?g = ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q77
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with approximately the same number of political territories as Uruguay ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q77
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Q77 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?k = ?v ) . { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?k ) WHERE { ?f property:P530 ?m . ?f rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } GROUP BY ?f } }
Uruguay
action count
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 Uruguay
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 ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Uruguay property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k = ?v ) . { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?k ) WHERE { ?f property:diplomatic_relation ?m . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?f } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
32
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q884 Q33 Q30 Q36 Q34 Q39 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q77
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Q77 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?k = ?v ) . { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?k ) WHERE { ?f property:P530 ?m . ?f rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } GROUP BY ?f } }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey South Korea Finland United States of America Poland Sweden Switzerland Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
32
action count
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 Uruguay
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 ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Uruguay property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k = ?v ) . { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?k ) WHERE { ?f property:diplomatic_relation ?m . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?f } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q117
P530
Q15617994 Q1048835
USER
And also tell me about Ghana?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q117
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?i ) AS ?s ) WHERE { ?o property:P530 ?i . ?o rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Q117 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?s = ?b ) }
Ghana
action count
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 Ghana
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 ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?i ) AS ?s ) WHERE { ?o property:diplomatic_relation ?i . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Ghana property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s = ?b ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
48
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q889 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q233 Q1041 Q27 Q1028 Q736 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q117
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?i ) AS ?s ) WHERE { ?o property:P530 ?i . ?o rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Q117 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?s = ?b ) }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Afghanistan Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Malta Senegal Ireland Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
48
action count
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 Ghana
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 ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?i ) AS ?s ) WHERE { ?o property:diplomatic_relation ?i . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Ghana property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s = ?b ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q475283 Q1768521
P17
Q15617994
USER
Which administrative territories do Cistérniga or FK Polonija Vilnius belong to ?
OR((Q1768521,P17,c(Q15617994)), (Q475283,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1768521
relation P17
action find
entity Q475283
relation P17
type Q15617994
{'OR': [['Q1768521', 'P17', {'concept': 'Q15617994'}], ['Q475283', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?f ) { ( resource:Q1768521 ) ( resource:Q475283 ) } . ?f property:P17 ?j } . ?j rdf:type ontology:Q15617994 }
FK Polonija Vilnius Cistérniga
action filter_type
action union
action find
entity Cistérniga
relation country
action find
entity FK Polonija Vilnius
relation country
type designation for an administrative territorial entity
{'OR': [['Cistérniga', 'country', {'concept': 'designation for an administrative territorial entity'}], ['FK Polonija Vilnius', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?f ) { ( resource:Cistérniga ) ( resource:FK_Polonija_Vilnius ) } . ?f property:country ?j } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q37
SYSTEM
Spain, Lithuania
Q29 Q37
OR((Q1768521,P17,c(Q15617994)), (Q475283,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1768521
relation P17
action find
entity Q475283
relation P17
type Q15617994
[ANSWERS] do Cistérniga or FK Polonija Vilnius belong to
{'OR': [['Q1768521', 'P17', {'concept': 'Q15617994'}], ['Q475283', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?f ) { ( resource:Q1768521 ) ( resource:Q475283 ) } . ?f property:P17 ?j } . ?j rdf:type ontology:Q15617994 }
Spain Lithuania
Spain and Lithuania do Cistérniga or FK Polonija Vilnius belong to
Spain Lithuania
action filter_type
action union
action find
entity Cistérniga
relation country
action find
entity FK Polonija Vilnius
relation country
type designation for an administrative territorial entity
{'OR': [['Cistérniga', 'country', {'concept': 'designation for an administrative territorial entity'}], ['FK Polonija Vilnius', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?f ) { ( resource:Cistérniga ) ( resource:FK_Polonija_Vilnius ) } . ?f property:country ?j } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q230
P530
Q15617994
USER
Are Georgia known to have diplomatic connections with those ones ?
(Q230,P530,Q29) (Q230,P530,Q37)
action is_in
entity prev_answer
action find
entity Q230
relation P530
['Q230', 'P530', 'Q29'] ['Q230', 'P530', 'Q37']
ASK WHERE { resource:Q230 property:P530 ?x . VALUES ( ?x ) { ( resource:Q29 ) ( resource:Q37 ) } }
Georgia
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Spain'] ['Georgia', 'diplomatic relation', 'Lithuania']
ASK WHERE { resource:Georgia property:diplomatic_relation ?x . VALUES ( ?x ) { ( resource:Spain ) ( resource:Lithuania ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q230,P530,Q29) (Q230,P530,Q37)
action is_in
entity prev_answer
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q29'] ['Q230', 'P530', 'Q37']
ASK WHERE { resource:Q230 property:P530 ?x . VALUES ( ?x ) { ( resource:Q29 ) ( resource:Q37 ) } }
Yes
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Spain'] ['Georgia', 'diplomatic relation', 'Lithuania']
ASK WHERE { resource:Georgia property:diplomatic_relation ?x . VALUES ( ?x ) { ( resource:Spain ) ( resource:Lithuania ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q31
P530
Q15617994 Q15617994
USER
How many administrative territories have ambassadorial relations with lesser number of administrative territories than Belgium ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q31
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?b ) WHERE { ?h property:P530 ?t . ?h rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?b < ?g ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Q31 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } }
Belgium
action count
action less
action find_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 Belgium
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 ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?b ) WHERE { ?h property:diplomatic_relation ?t . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?b < ?g ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Belgium property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
111
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q265 Q712 Q717 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q924 Q36 Q34 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q228 Q227 Q224 Q221 Q96 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q77 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q31
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?b ) WHERE { ?h property:P530 ?t . ?h rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?b < ?g ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Q31 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Uzbekistan Fiji Venezuela Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Tanzania Poland Sweden Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Croatia Republic of Macedonia Mexico Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Uruguay United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
111
action count
action less
action find_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 Belgium
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 ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?b ) WHERE { ?h property:diplomatic_relation ?t . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?b < ?g ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Belgium property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1651719 Q630999
P17
Q15617994
USER
Is Torrelobatón present in Beesten ?
(Q1651719,P17,Q630999)
action is_in
entity Q630999
action find
entity Q1651719
relation P17
['Q1651719', 'P17', 'Q630999']
ASK WHERE { resource:Q1651719 property:P17 resource:Q630999 }
Torrelobatón Beesten
action is_in
entity Beesten
action find
entity Torrelobatón
relation country
['Torrelobatón', 'country', 'Beesten']
ASK WHERE { resource:Torrelobatón property:country resource:Beesten }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1651719,P17,Q630999)
action is_in
entity Q630999
action find
entity Q1651719
relation P17
[ANSWER]
['Q1651719', 'P17', 'Q630999']
ASK WHERE { resource:Q1651719 property:P17 resource:Q630999 }
No
action is_in
entity Beesten
action find
entity Torrelobatón
relation country
['Torrelobatón', 'country', 'Beesten']
ASK WHERE { resource:Torrelobatón property:country resource:Beesten }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1651719
P1313
Q12737077
USER
What is the occupation held by Torrelobatón ?
(Q1651719,P1313,c(Q12737077))
action filter_type
action find
entity Q1651719
relation P1313
type Q12737077
['Q1651719', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q1651719 property:P1313 ?n }
Torrelobatón
action filter_type
action find
entity Torrelobatón
relation office held by head of government
type occupation
['Torrelobatón', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Torrelobatón property:office_held_by_head_of_government ?n }
[]
occupation
Q26694846
SYSTEM
mayor of Torrelobatón
Q26694846
(Q1651719,P1313,c(Q12737077))
action filter_type
action find
entity Q1651719
relation P1313
type Q12737077
The occupation held by Torrelobatón is the [ANSWER]
['Q1651719', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q1651719 property:P1313 ?n }
mayor of Torrelobatón
The occupation held by Torrelobatón is the mayor of Torrelobatón
mayor of Torrelobatón
action filter_type
action find
entity Torrelobatón
relation office held by head of government
type occupation
['Torrelobatón', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Torrelobatón property:office_held_by_head_of_government ?n }
[]