Simple Question (Direct)
Simple Question
Q2535850
P19
Q56061
USER
Which administrative territory is the birthplace of Václav Čevona ?
(Q2535850,P19,c(Q56061))
action filter_type
action find
entity Q2535850
relation P19
type Q56061
['Q2535850', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q2535850 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Václav Čevona
action filter_type
action find
entity Václav Čevona
relation place of birth
type administrative territorial entity
['Václav Čevona', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Václav_Čevona property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q27541
SYSTEM
Ružomberok
Q27541
(Q2535850,P19,c(Q56061))
action filter_type
action find
entity Q2535850
relation P19
type Q56061
[ANSWER] is the birthplace of Václav Čevona
['Q2535850', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q2535850 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Ružomberok
Ružomberok is the birthplace of Václav Čevona
Ružomberok
action filter_type
action find
entity Václav Čevona
relation place of birth
type administrative territorial entity
['Václav Čevona', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Václav_Čevona property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2535850
P106
Q151885
USER
Which concept has Václav Čevona as his/her 's career ?
(Q2535850,P106,c(Q151885))
action filter_type
action find
entity Q2535850
relation P106
type Q151885
['Q2535850', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?c WHERE { resource:Q2535850 property:P106 ?c . ?c rdf:type ontology:Q151885 }
Václav Čevona
action filter_type
action find
entity Václav Čevona
relation occupation
type concept
['Václav Čevona', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?c WHERE { resource:Václav_Čevona property:occupation ?c . ?c rdf:type ontology:concept }
[]
concept
Q11513337
SYSTEM
athletics competitor
Q11513337
(Q2535850,P106,c(Q151885))
action filter_type
action find
entity Q2535850
relation P106
type Q151885
The [ANSWER] has Václav Čevona as his/her 's career
['Q2535850', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?c WHERE { resource:Q2535850 property:P106 ?c . ?c rdf:type ontology:Q151885 }
athletics competitor
The athletics competitor has Václav Čevona as his/her 's career
athletics competitor
action filter_type
action find
entity Václav Čevona
relation occupation
type concept
['Václav Čevona', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?c WHERE { resource:Václav_Čevona property:occupation ?c . ?c rdf:type ontology:concept }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1995616
Q151885
USER
And also tell me about Gaëtan Bucki?
(Q1995616,P106,c(Q151885))
action filter_type
action find
entity Q1995616
relation P106
type Q151885
['Q1995616', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?j WHERE { resource:Q1995616 property:P106 ?j . ?j rdf:type ontology:Q151885 }
Gaëtan Bucki
action filter_type
action find
entity Gaëtan Bucki
relation occupation
type concept
['Gaëtan Bucki', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?j WHERE { resource:Gaëtan_Bucki property:occupation ?j . ?j rdf:type ontology:concept }
[]
concept
Q11513337
SYSTEM
athletics competitor
Q11513337
(Q1995616,P106,c(Q151885))
action filter_type
action find
entity Q1995616
relation P106
type Q151885
[ANSWER]
['Q1995616', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?j WHERE { resource:Q1995616 property:P106 ?j . ?j rdf:type ontology:Q151885 }
athletics competitor
athletics competitor
action filter_type
action find
entity Gaëtan Bucki
relation occupation
type concept
['Gaëtan Bucki', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?j WHERE { resource:Gaëtan_Bucki property:occupation ?j . ?j rdf:type ontology:concept }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P180
Q151885 Q838948 Q11060274
USER
How many concepts are expressed in lesser number of works of art or prints than that concept ?
(c(Q838948)|c(Q11060274),P180,c(Q151885))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q838948
action find_reverse_tuple_counts
relation P180
type Q151885
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q11513337
relation P180
type Q838948
type Q11060274
[[{'concept': 'Q838948'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) ?v WHERE { { ?d property:P180 ?v . ?v rdf:type ontology:Q151885 . ?d rdf:type ontology:Q838948 } UNION { ?d property:P180 ?v . ?v rdf:type ontology:Q151885 . ?d rdf:type ontology:Q11060274 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:P180 resource:Q11513337 . { ?l rdf:type ?h . VALUES ( ?h ) { ( ontology:Q838948 ) ( ontology:Q11060274 ) } } } } . FILTER ( ?p < ?c ) }
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type concept
type work of art
action find_reverse_tuple_counts
relation depicts
type concept
type print
action count
action filter_multi_types
action find_reverse
entity athletics competitor
relation depicts
type work of art
type print
[[{'concept': 'work of art'}, {'concept': 'print'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) ?v WHERE { { ?d property:depicts ?v . ?v rdf:type ontology:concept . ?d rdf:type ontology:work_of_art } UNION { ?d property:depicts ?v . ?v rdf:type ontology:concept . ?d rdf:type ontology:print } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:depicts resource:athletics_competitor . { ?l rdf:type ?h . VALUES ( ?h ) { ( ontology:work_of_art ) ( ontology:print ) } } } } . FILTER ( ?p < ?c ) }
[]
concept work of art print
SYSTEM
62
Q254508 Q193373 Q13381863 Q2304859 Q2472587 Q7743 Q188353 Q34023 Q454 Q177923 Q8436 Q14467155 Q177826 Q189829 Q48942 Q1968442 Q170430 Q482980 Q12004621 Q12773225 Q2207288 Q126236 Q15980704 Q273283 Q124216 Q703534 Q272735 Q17176618 Q38433 Q48282 Q113904 Q43616 Q1146843 Q1714828 Q2979 Q25443024 Q4964182 Q11399 Q40953 Q213449 Q877674 Q6388 Q203872 Q2083958 Q855091 Q2066131 Q3562775 Q931260 Q192581 Q18120029 Q18121798 Q876776 Q10843402 Q179637 Q5167661 Q3035707 Q1862087 Q1134237 Q10294 Q1125062 Q13382576 Q7234072
(c(Q838948)|c(Q11060274),P180,c(Q151885))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q838948
action find_reverse_tuple_counts
relation P180
type Q151885
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q11513337
relation P180
type Q838948
type Q11060274
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) ?v WHERE { { ?d property:P180 ?v . ?v rdf:type ontology:Q151885 . ?d rdf:type ontology:Q838948 } UNION { ?d property:P180 ?v . ?v rdf:type ontology:Q151885 . ?d rdf:type ontology:Q11060274 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:P180 resource:Q11513337 . { ?l rdf:type ?h . VALUES ( ?h ) { ( ontology:Q838948 ) ( ontology:Q11060274 ) } } } } . FILTER ( ?p < ?c ) }
outlaw Gordian knot fencer sovereign people home Welsh people tumulus peace auction family gaze clergy hermit pupil donor predation author fortune-teller slave craft conquistador matchmaker beggar Swiss people employee tree smuggler Newton's laws of motion student Radha mummy anchorite hunter liberty to walk philosopher rock music prayer eating touch human swimming being pattern guitarist sportsperson thief murderer job bibliophile lovers' embrace drinking swimmer prisoner of war justice gift prisoner court poverty rebel rower postal worker
62
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type concept
type work of art
action find_reverse_tuple_counts
relation depicts
type concept
type print
action count
action filter_multi_types
action find_reverse
entity athletics competitor
relation depicts
type work of art
type print
[[{'concept': 'work of art'}, {'concept': 'print'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) ?v WHERE { { ?d property:depicts ?v . ?v rdf:type ontology:concept . ?d rdf:type ontology:work_of_art } UNION { ?d property:depicts ?v . ?v rdf:type ontology:concept . ?d rdf:type ontology:print } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:depicts resource:athletics_competitor . { ?l rdf:type ?h . VALUES ( ?h ) { ( ontology:work_of_art ) ( ontology:print ) } } } } . FILTER ( ?p < ?c ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1438803 Q1995616
P27
Q15617994
USER
Which administrative territories are the native countriesof Gaëtan Bucki or Luís Lourenço ?
OR((Q1995616,P27,c(Q15617994)), (Q1438803,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1995616
relation P27
action find
entity Q1438803
relation P27
type Q15617994
{'OR': [['Q1995616', 'P27', {'concept': 'Q15617994'}], ['Q1438803', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1995616 property:P27 ?s } UNION { resource:Q1438803 property:P27 ?s } } . ?s rdf:type ontology:Q15617994 }
Luís Lourenço Gaëtan Bucki
action filter_type
action union
action find
entity Gaëtan Bucki
relation country of citizenship
action find
entity Luís Lourenço
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Gaëtan Bucki', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Luís Lourenço', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Gaëtan_Bucki property:country_of_citizenship ?s } UNION { resource:Luís_Lourenço property:country_of_citizenship ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q916
SYSTEM
France, Angola
Q142 Q916
OR((Q1995616,P27,c(Q15617994)), (Q1438803,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1995616
relation P27
action find
entity Q1438803
relation P27
type Q15617994
[ANSWERS] are the native countriesof Gaëtan Bucki or Luís Lourenço
{'OR': [['Q1995616', 'P27', {'concept': 'Q15617994'}], ['Q1438803', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1995616 property:P27 ?s } UNION { resource:Q1438803 property:P27 ?s } } . ?s rdf:type ontology:Q15617994 }
France Angola
France and Angola are the native countriesof Gaëtan Bucki or Luís Lourenço
France Angola
action filter_type
action union
action find
entity Gaëtan Bucki
relation country of citizenship
action find
entity Luís Lourenço
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Gaëtan Bucki', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Luís Lourenço', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Gaëtan_Bucki property:country_of_citizenship ?s } UNION { resource:Luís_Lourenço property:country_of_citizenship ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q39
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with greater number of administrative territories than Switzerland ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q39
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?g ) WHERE { ?o rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 . ?o property:P530 ?m } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { resource:Q39 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?f ) }
Switzerland
action greater
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 Switzerland
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 ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?g ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?m } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { resource:Switzerland property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?f ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q711 Q252 Q403 Q159 Q43 Q155 Q796 Q794 Q884 Q30 Q929 Q38 Q230 Q27 Q184 Q225 Q222 Q347 Q17 Q114 Q212 Q213 Q79 Q858 Q948 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q39
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with greater number of administrative territories than Switzerland
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?g ) WHERE { ?o rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 . ?o property:P530 ?m } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { resource:Q39 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?f ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Mongolia Indonesia Serbia Russia Turkey Brazil Iraq Iran South Korea United States of America Central African Republic Italy Georgia Ireland Belarus Bosnia and Herzegovina Albania Liechtenstein Japan Kenya Ukraine Czech Republic Egypt Syria Tunisia Cape Verde Zambia
Italy, Brazil and United States of America are known to have diplomatic connections with greater number of administrative territories than Switzerland
Italy Brazil United States of America
action greater
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 Switzerland
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 ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?g ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?m } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { resource:Switzerland property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?f ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with around 73 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 73
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?d ) WHERE { ?r rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 . ?r property:P530 ?k } GROUP BY ?r } . FILTER ( ?d = 73 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 73
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?d ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?k } GROUP BY ?r } . FILTER ( ?d = 73 ) }
[]
political territorial entity designation for an administrative territorial entity
Q408 Q16
SYSTEM
Australia, Canada
Q408 Q16
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 73
[ANSWERS] have diplomatic relations with around 73 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?d ) WHERE { ?r rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 . ?r property:P530 ?k } GROUP BY ?r } . FILTER ( ?d = 73 ) }
Australia Canada
Australia and Canada have diplomatic relations with around 73 administrative territories
Australia Canada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 73
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?d ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?k } GROUP BY ?r } . FILTER ( ?d = 73 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q464659
P27
Q502895
USER
Are Niki Chow a citizen of those political territories ?
(Q464659,P27,Q408) (Q464659,P27,Q16)
action is_in
entity prev_answer
action find
entity Q464659
relation P27
['Q464659', 'P27', 'Q408'] ['Q464659', 'P27', 'Q16']
ASK WHERE { VALUES ( ?k ) { ( resource:Q408 ) ( resource:Q16 ) } . resource:Q464659 property:P27 ?k }
Niki Chow
action is_in
entity prev_answer
action find
entity Niki Chow
relation country of citizenship
['Niki Chow', 'country of citizenship', 'Australia'] ['Niki Chow', 'country of citizenship', 'Canada']
ASK WHERE { VALUES ( ?k ) { ( resource:Australia ) ( resource:Canada ) } . resource:Niki_Chow property:country_of_citizenship ?k }
[]
common name
SYSTEM
NO
(Q464659,P27,Q408) (Q464659,P27,Q16)
action is_in
entity prev_answer
action find
entity Q464659
relation P27
[ANSWER]
['Q464659', 'P27', 'Q408'] ['Q464659', 'P27', 'Q16']
ASK WHERE { VALUES ( ?k ) { ( resource:Q408 ) ( resource:Q16 ) } . resource:Q464659 property:P27 ?k }
No
action is_in
entity prev_answer
action find
entity Niki Chow
relation country of citizenship
['Niki Chow', 'country of citizenship', 'Australia'] ['Niki Chow', 'country of citizenship', 'Canada']
ASK WHERE { VALUES ( ?k ) { ( resource:Australia ) ( resource:Canada ) } . resource:Niki_Chow property:country_of_citizenship ?k }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q38 Q219 Q17
P530
Q15617994
USER
Does Italy have tactful political relations with Bulgaria and Japan ?
(Q38,P530,Q219) (Q38,P530,Q17)
action is_in
entity Q38
action intersection
action find_reverse
entity Q219
relation P530
action find_reverse
entity Q17
relation P530
['Q38', 'P530', 'Q219'] ['Q38', 'P530', 'Q17']
ASK WHERE { resource:Q38 property:P530 resource:Q219 . resource:Q38 property:P530 resource:Q17 }
Italy Bulgaria Japan
action is_in
entity Italy
action intersection
action find_reverse
entity Bulgaria
relation diplomatic relation
action find_reverse
entity Japan
relation diplomatic relation
['Italy', 'diplomatic relation', 'Bulgaria'] ['Italy', 'diplomatic relation', 'Japan']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Bulgaria . resource:Italy property:diplomatic_relation resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q219) (Q38,P530,Q17)
action is_in
entity Q38
action intersection
action find_reverse
entity Q219
relation P530
action find_reverse
entity Q17
relation P530
[ANSWER]
['Q38', 'P530', 'Q219'] ['Q38', 'P530', 'Q17']
ASK WHERE { resource:Q38 property:P530 resource:Q219 . resource:Q38 property:P530 resource:Q17 }
Yes
action is_in
entity Italy
action intersection
action find_reverse
entity Bulgaria
relation diplomatic relation
action find_reverse
entity Japan
relation diplomatic relation
['Italy', 'diplomatic relation', 'Bulgaria'] ['Italy', 'diplomatic relation', 'Japan']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Bulgaria . resource:Italy property:diplomatic_relation resource:Japan }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q183
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with around the same number of political territories as Germany ?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?o ) WHERE { ?m property:P530 ?c . ?m rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?m } . FILTER ( ?o = ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Q183 property:P530 ?w . ?w rdf:type ontology:Q1048835 } } }
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 ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?o ) WHERE { ?m property:diplomatic_relation ?c . ?m rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?m } . FILTER ( ?o = ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Germany property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity political territorial entity
Q183 Q16
SYSTEM
Germany, Canada
Q183 Q16
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with around the same number of political territories as Germany
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?o ) WHERE { ?m property:P530 ?c . ?m rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?m } . FILTER ( ?o = ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Q183 property:P530 ?w . ?w rdf:type ontology:Q1048835 } } }
Germany Canada
Germany and Canada have diplomatic relations with around the same number of political territories as Germany
Germany Canada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?o ) WHERE { ?m property:diplomatic_relation ?c . ?m rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?m } . FILTER ( ?o = ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Germany property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories are known to have diplomatic connections with exactly 11 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 11
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?w ) WHERE { ?f property:P530 ?x . ?f rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?w = 11 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 11
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?w ) WHERE { ?f property:diplomatic_relation ?x . ?f rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?w = 11 ) }
[]
political territorial entity political territorial entity
SYSTEM
1
Q408
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 11
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?w ) WHERE { ?f property:P530 ?x . ?f rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?w = 11 ) }
Australia
1
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 11
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?w ) WHERE { ?f property:diplomatic_relation ?x . ?f rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?w = 11 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q308140 Q38
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Italy and are the native countriesof Abdi Aktaş ?
AND((Q38,P530,c(Q15617994)), (Q308140,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q308140
relation P27
type Q15617994
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q308140', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { resource:Q38 property:P530 ?d . resource:Q308140 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Abdi Aktaş Italy
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Abdi Aktaş
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Abdi Aktaş', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { resource:Italy property:diplomatic_relation ?d . resource:Abdi_Aktaş property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q43
SYSTEM
Turkey
Q43
AND((Q38,P530,c(Q15617994)), (Q308140,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q308140
relation P27
type Q15617994
[ANSWER] have diplomatic relationships with Italy and are the native countriesof Abdi Aktaş
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q308140', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { resource:Q38 property:P530 ?d . resource:Q308140 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Turkey
Turkey have diplomatic relationships with Italy and are the native countriesof Abdi Aktaş
Turkey
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Abdi Aktaş
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Abdi Aktaş', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { resource:Italy property:diplomatic_relation ?d . resource:Abdi_Aktaş property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]