Simple Question (Direct)
Simple Question
Q68077
P19
Q486972
USER
Where was Wilhelm Knop born ?
(Q68077,P19,c(Q486972))
action filter_type
action find
entity Q68077
relation P19
type Q486972
['Q68077', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?u WHERE { resource:Q68077 property:P19 ?u . ?u rdf:type ontology:Q486972 }
Wilhelm Knop
action filter_type
action find
entity Wilhelm Knop
relation place of birth
type human settlement
['Wilhelm Knop', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?u WHERE { resource:Wilhelm_Knop property:place_of_birth ?u . ?u rdf:type ontology:human_settlement }
[]
human settlement
Q436639
SYSTEM
Altenau
Q436639
(Q68077,P19,c(Q486972))
action filter_type
action find
entity Q68077
relation P19
type Q486972
Wilhelm Knop was born in [ANSWER]
['Q68077', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?u WHERE { resource:Q68077 property:P19 ?u . ?u rdf:type ontology:Q486972 }
Altenau
Wilhelm Knop was born in Altenau
Altenau
action filter_type
action find
entity Wilhelm Knop
relation place of birth
type human settlement
['Wilhelm Knop', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?u WHERE { resource:Wilhelm_Knop property:place_of_birth ?u . ?u rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q68077
P21
Q290
USER
What is the sex of Wilhelm Knop ?
(Q68077,P21,c(Q290))
action filter_type
action find
entity Q68077
relation P21
type Q290
['Q68077', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q68077 property:P21 ?d . ?d rdf:type ontology:Q290 }
Wilhelm Knop
action filter_type
action find
entity Wilhelm Knop
relation gender
type sex
['Wilhelm Knop', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Wilhelm_Knop property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q68077,P21,c(Q290))
action filter_type
action find
entity Q68077
relation P21
type Q290
The sex of Wilhelm Knop is the [ANSWER]
['Q68077', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q68077 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
The sex of Wilhelm Knop is the male
male
action filter_type
action find
entity Wilhelm Knop
relation gender
type sex
['Wilhelm Knop', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Wilhelm_Knop property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3011358
Q290
USER
And also tell me about DJ Vadim?
(Q3011358,P21,c(Q290))
action filter_type
action find
entity Q3011358
relation P21
type Q290
['Q3011358', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q3011358 property:P21 ?v . ?v rdf:type ontology:Q290 }
DJ Vadim
action filter_type
action find
entity DJ Vadim
relation gender
type sex
['DJ Vadim', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:DJ_Vadim property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3011358,P21,c(Q290))
action filter_type
action find
entity Q3011358
relation P21
type Q290
[ANSWER]
['Q3011358', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q3011358 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity DJ Vadim
relation gender
type sex
['DJ Vadim', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:DJ_Vadim property:gender ?v . ?v rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q170604
P1376
Q1048835 Q486972
USER
Which political territories have greater number of human settlements have their first city than New France ?
(c(Q486972),P1376,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action count
action filter_type
action find
entity Q170604
relation P1376
type Q1048835
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?o ) WHERE { ?m property:P1376 ?n . ?n rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q486972 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { resource:Q170604 property:P1376 ?j . ?j rdf:type ontology:Q1048835 } } . FILTER ( ?o > ?a ) }
New France
action greater
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action count
action filter_type
action find
entity New France
relation capital of
type political territorial entity
[{'concept': 'human settlement'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?o ) WHERE { ?m property:capital_of ?n . ?n rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:human_settlement } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { resource:New_France property:capital_of ?j . ?j rdf:type ontology:political_territorial_entity } } . FILTER ( ?o > ?a ) }
[]
political territorial entity human settlement
Q10485 Q170672 Q35086
SYSTEM
Deggendorf, Dnipropetrovsk Oblast, South Georgia and the South Sandwich Islands
Q7130037 Q3321945 Q10500690 Q3317759 Q3312902 Q2702993 Q6156 Q10469 Q10462 Q10466 Q971457 Q2846059 Q6319070 Q2718534 Q5455586 Q6319759 Q3313430 Q5088519 Q6318695 Q3826003 Q7258563 Q8050384 Q3314201 Q1468315 Q7414539 Q1769672 Q1229942 Q5444794 Q593806 Q201697 Q7827062 Q4694508 Q170672 Q3824193 Q571947 Q48106 Q2307775 Q5856660 Q2697637 Q10480 Q10485 Q6013498 Q5924968 Q35086
(c(Q486972),P1376,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action count
action filter_type
action find
entity Q170604
relation P1376
type Q1048835
[ANSWERS] have greater number of human settlements have their first city than New France
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?o ) WHERE { ?m property:P1376 ?n . ?n rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q486972 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { resource:Q170604 property:P1376 ?j . ?j rdf:type ontology:Q1048835 } } . FILTER ( ?o > ?a ) }
Panao District Acarí District San Miguel District Putumayo District Coya District Haquira District Oberspreewald-Lausitz Main-Spessart Haßberge Bad Kissingen Lunahuaná District Andahuaylillas District Magdalena de Cao District Lurigancho Fitzcarrald Sicaya District Antioquia District Chavinillo District Pimentel Chucuito District Puerto Inca District Yavari District Achoma District Pozuzo District San José de Sisa District La Sotonera La Jalca District Fernando Lores District Llata District Leimebamba District Torres Causana District Aguas Verdes Dnipropetrovsk Oblast Querobamba District Bautzen Suhl District Sepahua Mito District San Marcos District Dingolfing-Landau Deggendorf Inambari Huacaybamba South Georgia and the South Sandwich Islands
Deggendorf, Dnipropetrovsk Oblast and South Georgia and the South Sandwich Islands have greater number of human settlements have their first city than New France
Deggendorf Dnipropetrovsk Oblast South Georgia and the South Sandwich Islands
action greater
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action count
action filter_type
action find
entity New France
relation capital of
type political territorial entity
[{'concept': 'human settlement'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?o ) WHERE { ?m property:capital_of ?n . ?n rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:human_settlement } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { resource:New_France property:capital_of ?j . ?j rdf:type ontology:political_territorial_entity } } . FILTER ( ?o > ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q604640
P1376
Q1048835 Q486972
USER
And how about General Villegas Partido?
(c(Q486972),P1376,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action count
action filter_type
action find
entity Q604640
relation P1376
type Q1048835
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { resource:Q604640 property:P1376 ?e . ?e rdf:type ontology:Q1048835 } } . FILTER ( ?l > ?v ) . { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?l ) WHERE { ?d rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q486972 . ?n property:P1376 ?d } GROUP BY ?d } }
General Villegas Partido
action greater
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action count
action filter_type
action find
entity General Villegas Partido
relation capital of
type political territorial entity
[{'concept': 'human settlement'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { resource:General_Villegas_Partido property:capital_of ?e . ?e rdf:type ontology:political_territorial_entity } } . FILTER ( ?l > ?v ) . { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?l ) WHERE { ?d rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:human_settlement . ?n property:capital_of ?d } GROUP BY ?d } }
[]
political territorial entity human settlement
Q10485 Q170672 Q35086
SYSTEM
Deggendorf, Dnipropetrovsk Oblast, South Georgia and the South Sandwich Islands
Q7130037 Q3321945 Q10500690 Q3317759 Q3312902 Q2702993 Q6156 Q10469 Q10462 Q10466 Q971457 Q2846059 Q6319070 Q2718534 Q5455586 Q6319759 Q3313430 Q5088519 Q6318695 Q3826003 Q7258563 Q8050384 Q3314201 Q1468315 Q7414539 Q1769672 Q1229942 Q5444794 Q593806 Q201697 Q7827062 Q4694508 Q170672 Q3824193 Q571947 Q48106 Q2307775 Q5856660 Q2697637 Q10480 Q10485 Q6013498 Q5924968 Q35086
(c(Q486972),P1376,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action count
action filter_type
action find
entity Q604640
relation P1376
type Q1048835
[ANSWERS]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { resource:Q604640 property:P1376 ?e . ?e rdf:type ontology:Q1048835 } } . FILTER ( ?l > ?v ) . { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?l ) WHERE { ?d rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q486972 . ?n property:P1376 ?d } GROUP BY ?d } }
Panao District Acarí District San Miguel District Putumayo District Coya District Haquira District Oberspreewald-Lausitz Main-Spessart Haßberge Bad Kissingen Lunahuaná District Andahuaylillas District Magdalena de Cao District Lurigancho Fitzcarrald Sicaya District Antioquia District Chavinillo District Pimentel Chucuito District Puerto Inca District Yavari District Achoma District Pozuzo District San José de Sisa District La Sotonera La Jalca District Fernando Lores District Llata District Leimebamba District Torres Causana District Aguas Verdes Dnipropetrovsk Oblast Querobamba District Bautzen Suhl District Sepahua Mito District San Marcos District Dingolfing-Landau Deggendorf Inambari Huacaybamba South Georgia and the South Sandwich Islands
Deggendorf Dnipropetrovsk Oblast South Georgia and the South Sandwich Islands
action greater
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action count
action filter_type
action find
entity General Villegas Partido
relation capital of
type political territorial entity
[{'concept': 'human settlement'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { resource:General_Villegas_Partido property:capital_of ?e . ?e rdf:type ontology:political_territorial_entity } } . FILTER ( ?l > ?v ) . { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?l ) WHERE { ?d rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:human_settlement . ?n property:capital_of ?d } GROUP BY ?d } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q1048835
USER
How many political territories are next to the border of that political territory ?
(c(Q1048835),P47,Q10485)
[{'concept': 'Q1048835'}, 'P47', 'Q10485']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q16083 . ?z rdf:type ontology:Q1048835 }
[{'concept': 'political territorial entity'}, 'shares border with', 'Deggendorf']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Deggendorf . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q35086
SYSTEM
Did you mean South Georgia and the South Sandwich Islands ?
(c(Q1048835),P47,Q10485) (c(Q1048835),P47,Q170672) (c(Q1048835),P47,Q35086)
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q10485'] [{'concept': 'Q1048835'}, 'P47', 'Q170672'] [{'concept': 'Q1048835'}, 'P47', 'Q35086']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q16083 . ?z rdf:type ontology:Q1048835 }
Did you mean South Georgia and the South Sandwich Islands ?
South Georgia and the South Sandwich Islands
[{'concept': 'political territorial entity'}, 'shares border with', 'Deggendorf'] [{'concept': 'political territorial entity'}, 'shares border with', 'Dnipropetrovsk Oblast'] [{'concept': 'political territorial entity'}, 'shares border with', 'South Georgia and the South Sandwich Islands']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Deggendorf . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Deggendorf. Could you tell me the answer for that?
(c(Q1048835),P47,Q10485)
Q10485
[{'concept': 'Q1048835'}, 'P47', 'Q10485']
[{'concept': 'political territorial entity'}, 'shares border with', 'Deggendorf']
[]
SYSTEM
6
Q10477 Q10489 Q10482 Q10487 Q10480 Q10483
(c(Q1048835),P47,Q10485)
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q10485']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q16083 . ?z rdf:type ontology:Q1048835 }
Rottal-Inn Passau Straubing-Bogen Freyung-Grafenau Dingolfing-Landau Regen
6
[{'concept': 'political territorial entity'}, 'shares border with', 'Deggendorf']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Deggendorf . ?z rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1036
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relations with approximately the same number of political territories as Uganda ?
(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 Q1036
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?l ) WHERE { ?f property:P530 ?o . ?f rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q1036 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?l = ?k ) }
Uganda
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 Uganda
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 ?j ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?l ) WHERE { ?f property:diplomatic_relation ?o . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Uganda property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l = ?k ) }
[]
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 Q1036
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?l ) WHERE { ?f property:P530 ?o . ?f rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q1036 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?l = ?k ) }
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 Uganda
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 ?j ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?l ) WHERE { ?f property:diplomatic_relation ?o . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Uganda property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l = ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q55
P530
Q15617994 Q1048835
USER
And what about Netherlands?
(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 Q55
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?l ) WHERE { ?s rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 . ?s property:P530 ?c } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { resource:Q55 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?l = ?m ) }
Netherlands
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 Netherlands
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 ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?l ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity . ?s property:diplomatic_relation ?c } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { resource:Netherlands property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l = ?m ) }
[]
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 Q55
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?l ) WHERE { ?s rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 . ?s property:P530 ?c } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { resource:Q55 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?l = ?m ) }
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 Netherlands
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 ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?l ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity . ?s property:diplomatic_relation ?c } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { resource:Netherlands property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l = ?m ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q212 Q170672
P47 P17
Q1048835
USER
Which political territories share border with Dnipropetrovsk Oblast and are situated in Ukraine ?
AND((c(Q1048835),P47,Q170672), (c(Q1048835),P17,Q212))
action filter_type
action intersection
action find_reverse
entity Q170672
relation P47
action find_reverse
entity Q212
relation P17
type Q1048835
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q170672'], [{'concept': 'Q1048835'}, 'P17', 'Q212']]}
SELECT DISTINCT ?x WHERE { ?x property:P47 resource:Q170672 . ?x property:P17 resource:Q212 . ?x rdf:type ontology:Q1048835 }
Ukraine Dnipropetrovsk Oblast
action filter_type
action intersection
action find_reverse
entity Dnipropetrovsk Oblast
relation shares border with
action find_reverse
entity Ukraine
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', 'Dnipropetrovsk Oblast'], [{'concept': 'political territorial entity'}, 'country', 'Ukraine']]}
SELECT DISTINCT ?x WHERE { ?x property:shares_border_with resource:Dnipropetrovsk_Oblast . ?x property:country resource:Ukraine . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q163271 Q2012050 Q170666 Q180981 Q181633 Q171334 Q169501
SYSTEM
Kherson Oblast, Donetsk Oblast, Kharkiv Oblast, Kirovohrad Oblast, Mykolaiv Oblast, Zaporizhzhya Oblast, Poltava Oblast
Q163271 Q2012050 Q170666 Q180981 Q181633 Q171334 Q169501
AND((c(Q1048835),P47,Q170672), (c(Q1048835),P17,Q212))
action filter_type
action intersection
action find_reverse
entity Q170672
relation P47
action find_reverse
entity Q212
relation P17
type Q1048835
[ANSWERS] share border with Dnipropetrovsk Oblast and are situated in Ukraine
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q170672'], [{'concept': 'Q1048835'}, 'P17', 'Q212']]}
SELECT DISTINCT ?x WHERE { ?x property:P47 resource:Q170672 . ?x property:P17 resource:Q212 . ?x rdf:type ontology:Q1048835 }
Kherson Oblast Donetsk Oblast Kharkiv Oblast Kirovohrad Oblast Mykolaiv Oblast Zaporizhzhya Oblast Poltava Oblast
Kherson Oblast, Donetsk Oblast, Kharkiv Oblast, Kirovohrad Oblast, Mykolaiv Oblast, Zaporizhzhya Oblast and Poltava Oblast share border with Dnipropetrovsk Oblast and are situated in Ukraine
Kherson Oblast Donetsk Oblast Kharkiv Oblast Kirovohrad Oblast Mykolaiv Oblast Zaporizhzhya Oblast Poltava Oblast
action filter_type
action intersection
action find_reverse
entity Dnipropetrovsk Oblast
relation shares border with
action find_reverse
entity Ukraine
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', 'Dnipropetrovsk Oblast'], [{'concept': 'political territorial entity'}, 'country', 'Ukraine']]}
SELECT DISTINCT ?x WHERE { ?x property:shares_border_with resource:Dnipropetrovsk_Oblast . ?x property:country resource:Ukraine . ?x rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that political territory present in ?
(Q171334,P17,c(Q15617994))
['Q171334', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q171334 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Zaporizhzhya Oblast', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Zaporizhzhya_Oblast property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q163271
SYSTEM
Did you mean Kherson Oblast ?
(Q163271,P17,c(Q15617994)) (Q2012050,P17,c(Q15617994)) (Q170666,P17,c(Q15617994)) (Q180981,P17,c(Q15617994)) (Q181633,P17,c(Q15617994)) (Q171334,P17,c(Q15617994)) (Q169501,P17,c(Q15617994))
[ANSWER]
['Q163271', 'P17', {'concept': 'Q15617994'}] ['Q2012050', 'P17', {'concept': 'Q15617994'}] ['Q170666', 'P17', {'concept': 'Q15617994'}] ['Q180981', 'P17', {'concept': 'Q15617994'}] ['Q181633', 'P17', {'concept': 'Q15617994'}] ['Q171334', 'P17', {'concept': 'Q15617994'}] ['Q169501', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q171334 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Kherson Oblast ?
Kherson Oblast
['Kherson Oblast', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Donetsk Oblast', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Kharkiv Oblast', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Kirovohrad Oblast', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Mykolaiv Oblast', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Zaporizhzhya Oblast', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Poltava Oblast', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Zaporizhzhya_Oblast property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Zaporizhzhya Oblast. Could you tell me the answer for that?
(Q171334,P17,c(Q15617994))
Q171334
['Q171334', 'P17', {'concept': 'Q15617994'}]
['Zaporizhzhya Oblast', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q212
(Q171334,P17,c(Q15617994))
[ANSWER]
['Q171334', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q171334 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Ukraine
1
['Zaporizhzhya Oblast', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Zaporizhzhya_Oblast property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]