Simple Question (Direct)
Simple Question
Q15969944
P69
Q1935049
USER
Where was Archibald Winskill educated ?
(Q15969944,P69,c(Q1935049))
action filter_type
action find
entity Q15969944
relation P69
type Q1935049
['Q15969944', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?p WHERE { resource:Q15969944 property:P69 ?p . ?p rdf:type ontology:Q1935049 }
Archibald Winskill
action filter_type
action find
entity Archibald Winskill
relation educated at
type military school
['Archibald Winskill', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?p WHERE { resource:Archibald_Winskill property:educated_at ?p . ?p rdf:type ontology:military_school }
[]
military school
Q7596549
SYSTEM
Staff College, Camberley
Q7596549
(Q15969944,P69,c(Q1935049))
action filter_type
action find
entity Q15969944
relation P69
type Q1935049
Archibald Winskill was educated at [ANSWER]
['Q15969944', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?p WHERE { resource:Q15969944 property:P69 ?p . ?p rdf:type ontology:Q1935049 }
Staff College, Camberley
Archibald Winskill was educated at Staff College, Camberley
Staff College, Camberley
action filter_type
action find
entity Archibald Winskill
relation educated at
type military school
['Archibald Winskill', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?p WHERE { resource:Archibald_Winskill property:educated_at ?p . ?p rdf:type ontology:military_school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15969944
P607
Q198
USER
What was the war that Archibald Winskill took part in
(Q15969944,P607,c(Q198))
action filter_type
action find
entity Q15969944
relation P607
type Q198
['Q15969944', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?k WHERE { resource:Q15969944 property:P607 ?k . ?k rdf:type ontology:Q198 }
Archibald Winskill
action filter_type
action find
entity Archibald Winskill
relation conflict
type war
['Archibald Winskill', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?k WHERE { resource:Archibald_Winskill property:conflict ?k . ?k rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q15969944,P607,c(Q198))
action filter_type
action find
entity Q15969944
relation P607
type Q198
The war that Archibald Winskill took part in was during [ANSWER]
['Q15969944', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?k WHERE { resource:Q15969944 property:P607 ?k . ?k rdf:type ontology:Q198 }
World War II
The war that Archibald Winskill took part in was during World War II
World War II
action filter_type
action find
entity Archibald Winskill
relation conflict
type war
['Archibald Winskill', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?k WHERE { resource:Archibald_Winskill property:conflict ?k . ?k rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15969944
P166
Q2003221
USER
What was awarded to that person ?
(Q362,P166,c(Q2003221))
action filter_type
action find
entity Q15969944
relation P166
type Q2003221
['Q362', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?r WHERE { resource:Q15969944 property:P166 ?r . ?r rdf:type ontology:Q2003221 }
Archibald Winskill
action filter_type
action find
entity Archibald Winskill
relation award received
type chivalric order
['World War II', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?r WHERE { resource:Archibald_Winskill property:award_received ?r . ?r rdf:type ontology:chivalric_order }
[]
chivalric order
Q12201477
SYSTEM
Commander of the Order of the British Empire
Q12201477
(Q362,P166,c(Q2003221))
action filter_type
action find
entity Q15969944
relation P166
type Q2003221
The [ANSWER] was awarded to that person
['Q362', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?r WHERE { resource:Q15969944 property:P166 ?r . ?r rdf:type ontology:Q2003221 }
Commander of the Order of the British Empire
The Commander of the Order of the British Empire was awarded to that person
Commander of the Order of the British Empire
action filter_type
action find
entity Archibald Winskill
relation award received
type chivalric order
['World War II', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?r WHERE { resource:Archibald_Winskill property:award_received ?r . ?r rdf:type ontology:chivalric_order }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1903592 Q15969944
P27
Q15617994
USER
Which administrative territories do Archibald Winskill or Martin Dada Abejide Olorunmolu belong to ?
OR((Q15969944,P27,c(Q15617994)), (Q1903592,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15969944
relation P27
action find
entity Q1903592
relation P27
type Q15617994
{'OR': [['Q15969944', 'P27', {'concept': 'Q15617994'}], ['Q1903592', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q15969944 property:P27 ?v } UNION { resource:Q1903592 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Martin Dada Abejide Olorunmolu Archibald Winskill
action filter_type
action union
action find
entity Archibald Winskill
relation country of citizenship
action find
entity Martin Dada Abejide Olorunmolu
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Archibald Winskill', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Martin Dada Abejide Olorunmolu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Archibald_Winskill property:country_of_citizenship ?v } UNION { resource:Martin_Dada_Abejide_Olorunmolu property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1033 Q145
SYSTEM
Nigeria, United Kingdom
Q1033 Q145
OR((Q15969944,P27,c(Q15617994)), (Q1903592,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15969944
relation P27
action find
entity Q1903592
relation P27
type Q15617994
Archibald Winskill or Martin Dada Abejide Olorunmolu belong to [ANSWERS]
{'OR': [['Q15969944', 'P27', {'concept': 'Q15617994'}], ['Q1903592', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q15969944 property:P27 ?v } UNION { resource:Q1903592 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Nigeria United Kingdom
Archibald Winskill or Martin Dada Abejide Olorunmolu belong to Nigeria and United Kingdom
Nigeria United Kingdom
action filter_type
action union
action find
entity Archibald Winskill
relation country of citizenship
action find
entity Martin Dada Abejide Olorunmolu
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Archibald Winskill', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Martin Dada Abejide Olorunmolu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Archibald_Winskill property:country_of_citizenship ?v } UNION { resource:Martin_Dada_Abejide_Olorunmolu property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q145 Q187819
P264
Q2031291
USER
How many releases have United Kingdom or dash as their recording sponsor ?
(c(Q2031291),P264,Q145) (c(Q2031291),P264,Q187819)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P264
type Q2031291
action filter_type
action find_reverse
entity Q187819
relation P264
type Q2031291
[{'concept': 'Q2031291'}, 'P264', 'Q145'] [{'concept': 'Q2031291'}, 'P264', 'Q187819']
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { ?a rdf:type ontology:Q2031291 . ?a property:P264 resource:Q145 } UNION { ?a rdf:type ontology:Q2031291 . ?a property:P264 resource:Q187819 } }
United Kingdom dash
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation record label
type release
action filter_type
action find_reverse
entity dash
relation record label
type release
[{'concept': 'release'}, 'record label', 'United Kingdom'] [{'concept': 'release'}, 'record label', 'dash']
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { ?a rdf:type ontology:release . ?a property:record_label resource:United_Kingdom } UNION { ?a rdf:type ontology:release . ?a property:record_label resource:dash } }
[]
release
SYSTEM
5
Q7090973 Q2198408 Q7655570 Q6730569 Q6723324
(c(Q2031291),P264,Q145) (c(Q2031291),P264,Q187819)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P264
type Q2031291
action filter_type
action find_reverse
entity Q187819
relation P264
type Q2031291
[ANSWER]
[{'concept': 'Q2031291'}, 'P264', 'Q145'] [{'concept': 'Q2031291'}, 'P264', 'Q187819']
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { ?a rdf:type ontology:Q2031291 . ?a property:P264 resource:Q145 } UNION { ?a rdf:type ontology:Q2031291 . ?a property:P264 resource:Q187819 } }
On Fire Deep Cuts Sweet Warrior Magic Mach Schau
5
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation record label
type release
action filter_type
action find_reverse
entity dash
relation record label
type release
[{'concept': 'release'}, 'record label', 'United Kingdom'] [{'concept': 'release'}, 'record label', 'dash']
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { ?a rdf:type ontology:release . ?a property:record_label resource:United_Kingdom } UNION { ?a rdf:type ontology:release . ?a property:record_label resource:dash } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1544772 Q15969944
P27
Q15617994
USER
Which administrative territories are the native countriesof Archibald Winskill or Milo Quesada ?
OR((Q15969944,P27,c(Q15617994)), (Q1544772,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15969944
relation P27
action find
entity Q1544772
relation P27
type Q15617994
{'OR': [['Q15969944', 'P27', {'concept': 'Q15617994'}], ['Q1544772', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?e ) { ( resource:Q1544772 ) ( resource:Q15969944 ) } . ?e property:P27 ?c } . ?c rdf:type ontology:Q15617994 }
Milo Quesada Archibald Winskill
action filter_type
action union
action find
entity Archibald Winskill
relation country of citizenship
action find
entity Milo Quesada
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Archibald Winskill', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Milo Quesada', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?e ) { ( resource:Milo_Quesada ) ( resource:Archibald_Winskill ) } . ?e property:country_of_citizenship ?c } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q414 Q145
SYSTEM
Argentina, United Kingdom
Q414 Q145
OR((Q15969944,P27,c(Q15617994)), (Q1544772,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15969944
relation P27
action find
entity Q1544772
relation P27
type Q15617994
[ANSWERS] are the native countriesof Archibald Winskill or Milo Quesada
{'OR': [['Q15969944', 'P27', {'concept': 'Q15617994'}], ['Q1544772', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?e ) { ( resource:Q1544772 ) ( resource:Q15969944 ) } . ?e property:P27 ?c } . ?c rdf:type ontology:Q15617994 }
Argentina United Kingdom
Argentina and United Kingdom are the native countriesof Archibald Winskill or Milo Quesada
Argentina United Kingdom
action filter_type
action union
action find
entity Archibald Winskill
relation country of citizenship
action find
entity Milo Quesada
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Archibald Winskill', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Milo Quesada', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?e ) { ( resource:Milo_Quesada ) ( resource:Archibald_Winskill ) } . ?e property:country_of_citizenship ?c } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4872743
P710
Q1190554
USER
Were those administrative territories a participant of Battle of Wireless Ridge ?
(Q4872743,P710,Q414) (Q4872743,P710,Q145)
action is_in
entity prev_answer
action find
entity Q4872743
relation P710
['Q4872743', 'P710', 'Q414'] ['Q4872743', 'P710', 'Q145']
ASK WHERE { VALUES ( ?c ) { ( resource:Q414 ) ( resource:Q145 ) } . resource:Q4872743 property:P710 ?c }
Battle of Wireless Ridge
action is_in
entity prev_answer
action find
entity Battle of Wireless Ridge
relation participant
['Battle of Wireless Ridge', 'participant', 'Argentina'] ['Battle of Wireless Ridge', 'participant', 'United Kingdom']
ASK WHERE { VALUES ( ?c ) { ( resource:Argentina ) ( resource:United_Kingdom ) } . resource:Battle_of_Wireless_Ridge property:participant ?c }
[]
event
SYSTEM
YES
(Q4872743,P710,Q414) (Q4872743,P710,Q145)
action is_in
entity prev_answer
action find
entity Q4872743
relation P710
[ANSWER]
['Q4872743', 'P710', 'Q414'] ['Q4872743', 'P710', 'Q145']
ASK WHERE { VALUES ( ?c ) { ( resource:Q414 ) ( resource:Q145 ) } . resource:Q4872743 property:P710 ?c }
Yes
action is_in
entity prev_answer
action find
entity Battle of Wireless Ridge
relation participant
['Battle of Wireless Ridge', 'participant', 'Argentina'] ['Battle of Wireless Ridge', 'participant', 'United Kingdom']
ASK WHERE { VALUES ( ?c ) { ( resource:Argentina ) ( resource:United_Kingdom ) } . resource:Battle_of_Wireless_Ridge property:participant ?c }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q7596549 Q7958789 Q145
P17
Q15617994
USER
Is Staff College, Camberley located in Wachusett Regional School District and United Kingdom ?
(Q7596549,P17,Q7958789) (Q7596549,P17,Q145)
action is_in
entity Q7596549
action intersection
action find_reverse
entity Q7958789
relation P17
action find_reverse
entity Q145
relation P17
['Q7596549', 'P17', 'Q7958789'] ['Q7596549', 'P17', 'Q145']
ASK WHERE { resource:Q7596549 property:P17 resource:Q7958789 . resource:Q7596549 property:P17 resource:Q145 }
Staff College, Camberley Wachusett Regional School District United Kingdom
action is_in
entity Staff College, Camberley
action intersection
action find_reverse
entity Wachusett Regional School District
relation country
action find_reverse
entity United Kingdom
relation country
['Staff College, Camberley', 'country', 'Wachusett Regional School District'] ['Staff College, Camberley', 'country', 'United Kingdom']
ASK WHERE { resource:Staff_College,_Camberley property:country resource:Wachusett_Regional_School_District . resource:Staff_College,_Camberley property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q7596549,P17,Q7958789) (Q7596549,P17,Q145)
action is_in
entity Q7596549
action intersection
action find_reverse
entity Q7958789
relation P17
action find_reverse
entity Q145
relation P17
[ANSWER]
['Q7596549', 'P17', 'Q7958789'] ['Q7596549', 'P17', 'Q145']
ASK WHERE { resource:Q7596549 property:P17 resource:Q7958789 . resource:Q7596549 property:P17 resource:Q145 }
NO and YES respectively
action is_in
entity Staff College, Camberley
action intersection
action find_reverse
entity Wachusett Regional School District
relation country
action find_reverse
entity United Kingdom
relation country
['Staff College, Camberley', 'country', 'Wachusett Regional School District'] ['Staff College, Camberley', 'country', 'United Kingdom']
ASK WHERE { resource:Staff_College,_Camberley property:country resource:Wachusett_Regional_School_District . resource:Staff_College,_Camberley property:country resource:United_Kingdom }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q414 Q1362550 Q9092
P47
Q15617994
USER
Is Argentina next to the border of Yuhua District and Bruino ?
(Q414,P47,Q1362550) (Q414,P47,Q9092)
action is_in
entity Q414
action intersection
action find_reverse
entity Q1362550
relation P47
action find_reverse
entity Q9092
relation P47
['Q414', 'P47', 'Q1362550'] ['Q414', 'P47', 'Q9092']
ASK WHERE { resource:Q414 property:P47 resource:Q1362550 . resource:Q414 property:P47 resource:Q9092 }
Argentina Yuhua District Bruino
action is_in
entity Argentina
action intersection
action find_reverse
entity Yuhua District
relation shares border with
action find_reverse
entity Bruino
relation shares border with
['Argentina', 'shares border with', 'Yuhua District'] ['Argentina', 'shares border with', 'Bruino']
ASK WHERE { resource:Argentina property:shares_border_with resource:Yuhua_District . resource:Argentina property:shares_border_with resource:Bruino }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q414,P47,Q1362550) (Q414,P47,Q9092)
action is_in
entity Q414
action intersection
action find_reverse
entity Q1362550
relation P47
action find_reverse
entity Q9092
relation P47
[ANSWER]
['Q414', 'P47', 'Q1362550'] ['Q414', 'P47', 'Q9092']
ASK WHERE { resource:Q414 property:P47 resource:Q1362550 . resource:Q414 property:P47 resource:Q9092 }
No
action is_in
entity Argentina
action intersection
action find_reverse
entity Yuhua District
relation shares border with
action find_reverse
entity Bruino
relation shares border with
['Argentina', 'shares border with', 'Yuhua District'] ['Argentina', 'shares border with', 'Bruino']
ASK WHERE { resource:Argentina property:shares_border_with resource:Yuhua_District . resource:Argentina property:shares_border_with resource:Bruino }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q414 Q774
P530
Q1048835
USER
How many political territories holds diplomatic relationship with Argentina and Guatemala ?
(Q414,P530,c(Q1048835)) (Q774,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q414
relation P530
type Q1048835
action filter_type
action find
entity Q774
relation P530
type Q1048835
['Q414', 'P530', {'concept': 'Q1048835'}] ['Q774', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { resource:Q414 property:P530 ?e . ?e rdf:type ontology:Q1048835 . resource:Q774 property:P530 ?e . ?e rdf:type ontology:Q1048835 }
Argentina Guatemala
action count
action intersection
action filter_type
action find
entity Argentina
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Guatemala
relation diplomatic relation
type political territorial entity
['Argentina', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Guatemala', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { resource:Argentina property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . resource:Guatemala property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q414,P530,c(Q1048835)) (Q774,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q414
relation P530
type Q1048835
action filter_type
action find
entity Q774
relation P530
type Q1048835
[ANSWER]
['Q414', 'P530', {'concept': 'Q1048835'}] ['Q774', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { resource:Q414 property:P530 ?e . ?e rdf:type ontology:Q1048835 . resource:Q774 property:P530 ?e . ?e rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find
entity Argentina
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Guatemala
relation diplomatic relation
type political territorial entity
['Argentina', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Guatemala', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { resource:Argentina property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . resource:Guatemala property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5993230
P106
Q151885
USER
Which concept is the profession of Igor Dziuba ?
(Q5993230,P106,c(Q151885))
action filter_type
action find
entity Q5993230
relation P106
type Q151885
['Q5993230', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?x WHERE { resource:Q5993230 property:P106 ?x . ?x rdf:type ontology:Q151885 }
Igor Dziuba
action filter_type
action find
entity Igor Dziuba
relation occupation
type concept
['Igor Dziuba', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?x WHERE { resource:Igor_Dziuba property:occupation ?x . ?x rdf:type ontology:concept }
[]
concept
Q10866633
SYSTEM
speed skater
Q10866633
(Q5993230,P106,c(Q151885))
action filter_type
action find
entity Q5993230
relation P106
type Q151885
So [ANSWER] is the profession of Igor Dziuba
['Q5993230', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?x WHERE { resource:Q5993230 property:P106 ?x . ?x rdf:type ontology:Q151885 }
speed skater
So speed skater is the profession of Igor Dziuba
speed skater
action filter_type
action find
entity Igor Dziuba
relation occupation
type concept
['Igor Dziuba', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?x WHERE { resource:Igor_Dziuba property:occupation ?x . ?x rdf:type ontology:concept }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q15617994 Q15416 Q2342494
USER
Which administrative territories are the countries of origin of min number of television programs or collectables ?
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?j ) { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?e ) WHERE { ?x rdf:type ?r . VALUES ( ?r ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } GROUP BY ?o } } . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?m ) WHERE { { ?u property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q2342494 } UNION { ?u property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15416 } } GROUP BY ?y } . FILTER ( ?m = ?j ) }
action argmin
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?j ) { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?e ) WHERE { ?x rdf:type ?r . VALUES ( ?r ) { ( ontology:television_program ) ( ontology:collectable ) } } GROUP BY ?o } } . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?m ) WHERE { { ?u property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:collectable } UNION { ?u property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:television_program } } GROUP BY ?y } . FILTER ( ?m = ?j ) }
[]
designation for an administrative territorial entity television program collectable
Q184 Q347 Q805
SYSTEM
Belarus, Liechtenstein, Yemen
Q805 Q1462 Q265 Q36678 Q711 Q1460 Q657 Q958 Q986 Q826 Q244 Q811 Q153136 Q924 Q423 Q983 Q29999 Q819 Q730 Q159626 Q236 Q233 Q238 Q1045 Q1044 Q1025 Q1027 Q1020 Q184 Q1029 Q227 Q223 Q221 Q347 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q962 Q963 Q115 Q917 Q1007 Q1009 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q948 Q1019 Q813 Q1016 Q945 Q672 Q176 Q863
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
[ANSWERS] are the countries of origin of min number of television programs or collectables
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?j ) { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?e ) WHERE { ?x rdf:type ?r . VALUES ( ?r ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } GROUP BY ?o } } . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?m ) WHERE { { ?u property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q2342494 } UNION { ?u property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15416 } } GROUP BY ?y } . FILTER ( ?m = ?j ) }
Yemen Sardinia Uzbekistan West Bank Mongolia Sicily Chad South Sudan Eritrea Maldives Barbados Nicaragua Habsburg Empire Tanzania North Korea Equatorial Guinea Kingdom of the Netherlands Laos Suriname Württemberg Montenegro Malta San Marino Somalia Sierra Leone Mauritania Mauritius Malawi Belarus Mozambique Azerbaijan Greenland Republic of Macedonia Liechtenstein Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Benin Botswana Ethiopia Bhutan Guinea-Bissau Cameroon Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Tunisia Madagascar Kyrgyzstan Libya Togo Tuvalu Quebec Tajikistan
Belarus, Liechtenstein and Yemen are the countries of origin of min number of television programs or collectables
Belarus Liechtenstein Yemen
action argmin
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?j ) { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?e ) WHERE { ?x rdf:type ?r . VALUES ( ?r ) { ( ontology:television_program ) ( ontology:collectable ) } } GROUP BY ?o } } . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?m ) WHERE { { ?u property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:collectable } UNION { ?u property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:television_program } } GROUP BY ?y } . FILTER ( ?m = ?j ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with approximately 18 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 18
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { ?u property:P530 ?m . ?u rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?x = 18 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 18
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { ?u property:diplomatic_relation ?m . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?x = 18 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
6
Q801 Q805 Q142 Q145 Q148 Q17
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 18
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { ?u property:P530 ?m . ?u rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?x = 18 ) }
Israel Yemen France United Kingdom People's Republic of China Japan
6
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 18
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { ?u property:diplomatic_relation ?m . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?x = 18 ) }
[]