Simple Question (Direct)
Simple Question
Q22031059
P21
Q290
USER
What is the sex of Gonzalo Echenique ?
(Q22031059,P21,c(Q290))
action filter_type
action find
entity Q22031059
relation P21
type Q290
['Q22031059', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q22031059 property:P21 ?g . ?g rdf:type ontology:Q290 }
Gonzalo Echenique
action filter_type
action find
entity Gonzalo Echenique
relation gender
type sex
['Gonzalo Echenique', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Gonzalo_Echenique property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q22031059,P21,c(Q290))
action filter_type
action find
entity Q22031059
relation P21
type Q290
The sex of Gonzalo Echenique is the [ANSWER]
['Q22031059', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q22031059 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
The sex of Gonzalo Echenique is the male
male
action filter_type
action find
entity Gonzalo Echenique
relation gender
type sex
['Gonzalo Echenique', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Gonzalo_Echenique property:gender ?g . ?g rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22031059
P27
Q15617994
USER
Which administrative territories are Gonzalo Echenique a civilian of ?
(Q22031059,P27,c(Q15617994))
action filter_type
action find
entity Q22031059
relation P27
type Q15617994
['Q22031059', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q22031059 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Gonzalo Echenique
action filter_type
action find
entity Gonzalo Echenique
relation country of citizenship
type designation for an administrative territorial entity
['Gonzalo Echenique', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Gonzalo_Echenique property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q414
SYSTEM
Spain, Argentina
Q29 Q414
(Q22031059,P27,c(Q15617994))
action filter_type
action find
entity Q22031059
relation P27
type Q15617994
[ANSWERS] are Gonzalo Echenique a civilian of
['Q22031059', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q22031059 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Spain Argentina
Spain and Argentina are Gonzalo Echenique a civilian of
Spain Argentina
action filter_type
action find
entity Gonzalo Echenique
relation country of citizenship
type designation for an administrative territorial entity
['Gonzalo Echenique', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Gonzalo_Echenique property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P1071
Q15709879
USER
Which artwork series has Spain as its terminal assembly location ?
(c(Q15709879),P1071,Q29)
action filter_type
action find_reverse
entity Q29
relation P1071
type Q15709879
[{'concept': 'Q15709879'}, 'P1071', 'Q29']
SELECT DISTINCT ?f WHERE { ?f property:P1071 resource:Q29 . ?f rdf:type ontology:Q15709879 }
Spain
action filter_type
action find_reverse
entity Spain
relation location of final assembly
type artwork series
[{'concept': 'artwork series'}, 'location of final assembly', 'Spain']
SELECT DISTINCT ?f WHERE { ?f property:location_of_final_assembly resource:Spain . ?f rdf:type ontology:artwork_series }
[]
artwork series
Q115728
SYSTEM
The Madonna of Port Lligat
Q115728
(c(Q15709879),P1071,Q29)
action filter_type
action find_reverse
entity Q29
relation P1071
type Q15709879
[ANSWER] has Spain as its terminal assembly location
[{'concept': 'Q15709879'}, 'P1071', 'Q29']
SELECT DISTINCT ?f WHERE { ?f property:P1071 resource:Q29 . ?f rdf:type ontology:Q15709879 }
The Madonna of Port Lligat
The Madonna of Port Lligat has Spain as its terminal assembly location
The Madonna of Port Lligat
action filter_type
action find_reverse
entity Spain
relation location of final assembly
type artwork series
[{'concept': 'artwork series'}, 'location of final assembly', 'Spain']
SELECT DISTINCT ?f WHERE { ?f property:location_of_final_assembly resource:Spain . ?f rdf:type ontology:artwork_series }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P194
Q1752346
USER
Which assembly governs Spain ?
(Q29,P194,c(Q1752346))
action filter_type
action find
entity Q29
relation P194
type Q1752346
['Q29', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1752346 . resource:Q29 property:P194 ?r }
Spain
action filter_type
action find
entity Spain
relation legislative body
type assembly
['Spain', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:assembly . resource:Spain property:legislative_body ?r }
[]
assembly
Q219692
SYSTEM
Cortes Generales
Q219692
(Q29,P194,c(Q1752346))
action filter_type
action find
entity Q29
relation P194
type Q1752346
La [ANSWER] governs Spain
['Q29', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1752346 . resource:Q29 property:P194 ?r }
Cortes Generales
La Cortes Generales governs Spain
Cortes Generales
action filter_type
action find
entity Spain
relation legislative body
type assembly
['Spain', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:assembly . resource:Spain property:legislative_body ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29
P17
Q15617994
USER
Which administrative territory is that one located in ?
(Q219692,P17,c(Q15617994))
action filter_type
action find
entity Q29
relation P17
type Q15617994
['Q219692', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q29 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Spain
action filter_type
action find
entity Spain
relation country
type designation for an administrative territorial entity
['Cortes Generales', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Spain property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q219692,P17,c(Q15617994))
action filter_type
action find
entity Q29
relation P17
type Q15617994
That one is located in [ANSWER]
['Q219692', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q29 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Spain
That one is located in Spain
Spain
action filter_type
action find
entity Spain
relation country
type designation for an administrative territorial entity
['Cortes Generales', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Spain property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q778
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with more number of administrative territories than The Bahamas ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { resource:Q778 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?s ) . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?z ) WHERE { ?d property:P530 ?o . ?d rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?d } }
The Bahamas
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity The Bahamas
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { resource:The_Bahamas property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?s ) . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?z ) WHERE { ?d property:diplomatic_relation ?o . ?d rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with more number of administrative territories than The Bahamas
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { resource:Q778 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?s ) . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?z ) WHERE { ?d property:P530 ?o . ?d rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?d } }
Austria Germany Australia Denmark Canada New Zealand Jamaica
Germany, Australia and Denmark have diplomatic relations with more number of administrative territories than The Bahamas
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity The Bahamas
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { resource:The_Bahamas property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?s ) . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?z ) WHERE { ?d property:diplomatic_relation ?o . ?d rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q766
P530
Q1048835 Q15617994
USER
And how about Jamaica?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?k ) WHERE { ?q rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 . ?e property:P530 ?q } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:Q766 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?k > ?s ) }
Jamaica
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?k ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?e property:diplomatic_relation ?q } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:Jamaica property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?k > ?s ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?k ) WHERE { ?q rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 . ?e property:P530 ?q } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:Q766 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?k > ?s ) }
Austria Germany Australia Denmark Canada New Zealand
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?k ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?e property:diplomatic_relation ?q } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:Jamaica property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?k > ?s ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q490422
P530
Q15617994
USER
Do Giardini Naxos have tactful political relations with those political territories ?
(Q490422,P530,Q183) (Q490422,P530,Q408) (Q490422,P530,Q35)
action is_in
entity prev_answer
action find
entity Q490422
relation P530
['Q490422', 'P530', 'Q183'] ['Q490422', 'P530', 'Q408'] ['Q490422', 'P530', 'Q35']
ASK WHERE { resource:Q490422 property:P530 ?i . VALUES ( ?i ) { ( resource:Q40 ) ( resource:Q183 ) ( resource:Q408 ) } }
Giardini Naxos
action is_in
entity prev_answer
action find
entity Giardini Naxos
relation diplomatic relation
['Giardini Naxos', 'diplomatic relation', 'Germany'] ['Giardini Naxos', 'diplomatic relation', 'Australia'] ['Giardini Naxos', 'diplomatic relation', 'Denmark']
ASK WHERE { resource:Giardini_Naxos property:diplomatic_relation ?i . VALUES ( ?i ) { ( resource:Austria ) ( resource:Germany ) ( resource:Australia ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q490422,P530,Q183) (Q490422,P530,Q408) (Q490422,P530,Q35)
action is_in
entity prev_answer
action find
entity Q490422
relation P530
[ANSWER]
['Q490422', 'P530', 'Q183'] ['Q490422', 'P530', 'Q408'] ['Q490422', 'P530', 'Q35']
ASK WHERE { resource:Q490422 property:P530 ?i . VALUES ( ?i ) { ( resource:Q40 ) ( resource:Q183 ) ( resource:Q408 ) } }
No
action is_in
entity prev_answer
action find
entity Giardini Naxos
relation diplomatic relation
['Giardini Naxos', 'diplomatic relation', 'Germany'] ['Giardini Naxos', 'diplomatic relation', 'Australia'] ['Giardini Naxos', 'diplomatic relation', 'Denmark']
ASK WHERE { resource:Giardini_Naxos property:diplomatic_relation ?i . VALUES ( ?i ) { ( resource:Austria ) ( resource:Germany ) ( resource:Australia ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P163
Q14660
USER
What is associated with Germany ?
(Q183,P163,c(Q14660))
action filter_type
action find
entity Q183
relation P163
type Q14660
['Q183', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?n WHERE { resource:Q183 property:P163 ?n . ?n rdf:type ontology:Q14660 }
Germany
action filter_type
action find
entity Germany
relation flag
type flag
['Germany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?n WHERE { resource:Germany property:flag ?n . ?n rdf:type ontology:flag }
[]
flag
Q48160
SYSTEM
flag of Germany
Q48160
(Q183,P163,c(Q14660))
action filter_type
action find
entity Q183
relation P163
type Q14660
Germany [ANSWER] is associated with Germany
['Q183', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?n WHERE { resource:Q183 property:P163 ?n . ?n rdf:type ontology:Q14660 }
flag of Germany
Germany flag of Germany is associated with Germany
flag of Germany
action filter_type
action find
entity Germany
relation flag
type flag
['Germany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?n WHERE { resource:Germany property:flag ?n . ?n rdf:type ontology:flag }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P291
Q482994
USER
Which album has Germany as its publication place ?
(c(Q482994),P291,Q183)
action filter_type
action find_reverse
entity Q183
relation P291
type Q482994
[{'concept': 'Q482994'}, 'P291', 'Q183']
SELECT DISTINCT ?y WHERE { ?y property:P291 resource:Q183 . ?y rdf:type ontology:Q482994 }
Germany
action filter_type
action find_reverse
entity Germany
relation place of publication
type album
[{'concept': 'album'}, 'place of publication', 'Germany']
SELECT DISTINCT ?y WHERE { ?y property:place_of_publication resource:Germany . ?y rdf:type ontology:album }
[]
album
Q16323236
SYSTEM
Bloodlines
Q16323236
(c(Q482994),P291,Q183)
action filter_type
action find_reverse
entity Q183
relation P291
type Q482994
The [ANSWER] has Germany as its publication place
[{'concept': 'Q482994'}, 'P291', 'Q183']
SELECT DISTINCT ?y WHERE { ?y property:P291 resource:Q183 . ?y rdf:type ontology:Q482994 }
Bloodlines
The Bloodlines has Germany as its publication place
Bloodlines
action filter_type
action find_reverse
entity Germany
relation place of publication
type album
[{'concept': 'album'}, 'place of publication', 'Germany']
SELECT DISTINCT ?y WHERE { ?y property:place_of_publication resource:Germany . ?y rdf:type ontology:album }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P30
Q2221906
USER
Which geographic location is that political territory a part of ?
(Q16323236,P30,c(Q2221906))
action filter_type
action find
entity Q183
relation P30
type Q2221906
['Q16323236', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?j WHERE { resource:Q183 property:P30 ?j . ?j rdf:type ontology:Q2221906 }
Germany
action filter_type
action find
entity Germany
relation continent
type geographic location
['Bloodlines', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?j WHERE { resource:Germany property:continent ?j . ?j rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q16323236,P30,c(Q2221906))
action filter_type
action find
entity Q183
relation P30
type Q2221906
[ANSWER] is that political territory a part of
['Q16323236', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?j WHERE { resource:Q183 property:P30 ?j . ?j rdf:type ontology:Q2221906 }
Europe
Europe is that political territory a part of
Europe
action filter_type
action find
entity Germany
relation continent
type geographic location
['Bloodlines', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?j WHERE { resource:Germany property:continent ?j . ?j rdf:type ontology:geographic_location }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q482994 Q482994 Q7725634
USER
How many albums are exactly 8 albums or literary works a part of ?
(c(Q482994)|c(Q7725634),P361,c(Q482994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q482994
type Q482994
action find_reverse_tuple_counts
relation P361
type Q482994
type Q7725634
value 8
[[{'concept': 'Q482994'}, {'concept': 'Q7725634'}], 'P361', {'concept': 'Q482994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?o ) WHERE { VALUES ( ?p ) { ( ontology:Q7725634 ) ( ontology:Q482994 ) } . ?m rdf:type ?p } GROUP BY ?q } . FILTER ( ?o = 8 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type album
type album
action find_reverse_tuple_counts
relation part of
type album
type literary work
value 8
[[{'concept': 'album'}, {'concept': 'literary work'}], 'part of', {'concept': 'album'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?o ) WHERE { VALUES ( ?p ) { ( ontology:literary_work ) ( ontology:album ) } . ?m rdf:type ?p } GROUP BY ?q } . FILTER ( ?o = 8 ) }
[]
album album literary work
SYSTEM
2
Q21666102 Q1154894
(c(Q482994)|c(Q7725634),P361,c(Q482994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q482994
type Q482994
action find_reverse_tuple_counts
relation P361
type Q482994
type Q7725634
value 8
[ANSWER]
[[{'concept': 'Q482994'}, {'concept': 'Q7725634'}], 'P361', {'concept': 'Q482994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?o ) WHERE { VALUES ( ?p ) { ( ontology:Q7725634 ) ( ontology:Q482994 ) } . ?m rdf:type ?p } GROUP BY ?q } . FILTER ( ?o = 8 ) }
The Most Beautiful Moment In Life, Part 2 The Lion King
2
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type album
type album
action find_reverse_tuple_counts
relation part of
type album
type literary work
value 8
[[{'concept': 'album'}, {'concept': 'literary work'}], 'part of', {'concept': 'album'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?o ) WHERE { VALUES ( ?p ) { ( ontology:literary_work ) ( ontology:album ) } . ?m rdf:type ?p } GROUP BY ?q } . FILTER ( ?o = 8 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P706
Q56061 Q2221906
USER
Which administrative territories are min number of geographic locations located on ?
(c(Q2221906),P706,Q1073089)
action argmin
action find_reverse_tuple_counts
relation P706
type Q56061
type Q2221906
[{'concept': 'Q2221906'}, 'P706', 'Q1073089']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?w ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?c ) WHERE { ?t rdf:type ontology:Q56061 . ?v rdf:type ontology:Q2221906 . ?v property:P706 ?t } GROUP BY ?t } } . FILTER ( ?o = ?w ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?o ) WHERE { ?z rdf:type ontology:Q56061 . ?q rdf:type ontology:Q2221906 . ?q property:P706 ?z } GROUP BY ?z } }
action argmin
action find_reverse_tuple_counts
relation located on terrain feature
type administrative territorial entity
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', 'Chimanimani']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?w ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?c ) WHERE { ?t rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:geographic_location . ?v property:located_on_terrain_feature ?t } GROUP BY ?t } } . FILTER ( ?o = ?w ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?o ) WHERE { ?z rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:geographic_location . ?q property:located_on_terrain_feature ?z } GROUP BY ?z } }
[]
administrative territorial entity geographic location
Q649 Q2807 Q8678
SYSTEM
Moscow, Madrid, Rio de Janeiro
Q1715 Q644023 Q12317764 Q10861438 Q211073 Q4965978 Q486580 Q203995 Q322361 Q1025947 Q3711 Q21176 Q138901 Q3413022 Q406 Q1135211 Q612 Q8678 Q309355 Q7107283 Q663011 Q20085877 Q727 Q649 Q6515984 Q1479 Q836960 Q3219865 Q72499 Q23436 Q26087 Q1085963 Q463937 Q368275 Q707345 Q572041 Q3141 Q586 Q672395 Q569685 Q5689172 Q1919093 Q1373658 Q904462 Q237 Q2255839 Q12994 Q2807 Q932302 Q2066 Q156858 Q1754 Q706005 Q1622641 Q13153 Q200707 Q14452 Q1850 Q6276922 Q212040 Q515 Q2428809 Q853946 Q2703446 Q90 Q16635 Q123076 Q25231 Q1741 Q913663 Q1748 Q1016709 Q3286039 Q1223508 Q84 Q2132 Q7880 Q24639 Q1553054 Q1921029 Q81046 Q155863 Q2622689 Q1218 Q7230430 Q10667337 Q1567229 Q2577744 Q3172924 Q516474 Q4942522 Q1014221 Q740149 Q16536070 Q214178 Q6958544 Q3295876 Q539579 Q25396 Q1043368 Q436691 Q815893 Q1476222 Q831527 Q2536868 Q1017 Q11998785 Q244289 Q780785 Q325455 Q15377091 Q1333951 Q1929484 Q191607 Q1042366 Q189059 Q27168 Q1014699 Q14947358 Q745121 Q1073089
(c(Q2221906),P706,Q1073089)
action argmin
action find_reverse_tuple_counts
relation P706
type Q56061
type Q2221906
Min number of geographic locations are located in [ANSWERS]
[{'concept': 'Q2221906'}, 'P706', 'Q1073089']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?w ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?c ) WHERE { ?t rdf:type ontology:Q56061 . ?v rdf:type ontology:Q2221906 . ?v property:P706 ?t } GROUP BY ?t } } . FILTER ( ?o = ?w ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?o ) WHERE { ?z rdf:type ontology:Q56061 . ?q rdf:type ontology:Q2221906 . ?q property:P706 ?z } GROUP BY ?z } }
Hanover Troy Grove Højer Svay Rieng Matadi Brickell Key Pedra de Lume Southend-on-Sea Ribe Watson Lake Belgrade Viborg Livermore Quartier-d'Orléans Istanbul Agios Konstantinos, East Attica Dubai Rio de Janeiro Kikinda Osney Hadsund Mullumbimby Amsterdam Moscow Setskog Bordeaux Rødding Laurium Mediterranean Basin Edinburgh Tromsø Franklin Saint Thomas Spetses Padborg Antequera Melbourne Bonn Thurø Griesheim Head Lake, Ontario Melby Charlottenlund Riddarholmen Vatican City Uitkerke Bruges Madrid Dingle Essen Struga Stockholm Friedrichstadt Mount Macedon Ronda Takamatsu Easter Island Phnom Penh Jordan River, British Columbia Stóra Dímun city Champagne Girsu Eskilstrup Paris Guam Palmyra Atoll Svalbard Vienna Bridge of Orchy Copenhagen Mokra Gora Manndalen Ohrid London Victoria Toulouse Vancouver Gudhjem Menzenschwand Charleroi Kronstadt Skærbæk Jerusalem Porsön Sickla Tornquist Zone Ingarö Løgumkloster Groß-Umstadt Bonnyrigg Konitsa Södermalm Careil Nablus Nagarbhavi Martinique, Nova Scotia Groß-Bieberau Bonaire Stora Essingen Altenberg Bellelay Sehel Island Djurgården Werbomont Aachen Rådal Athis-Mons Långholmen Yitzhar Clausthal Elstorf Klejtrup Podolia Lilla Essingen Mytilene Randers Demir Kapija Sommerfeld Alsace Wine Region Chimanimani
Min number of geographic locations are located in Moscow, Madrid and Rio de Janeiro
Moscow Madrid Rio de Janeiro
action argmin
action find_reverse_tuple_counts
relation located on terrain feature
type administrative territorial entity
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', 'Chimanimani']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?w ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?c ) WHERE { ?t rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:geographic_location . ?v property:located_on_terrain_feature ?t } GROUP BY ?t } } . FILTER ( ?o = ?w ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?o ) WHERE { ?z rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:geographic_location . ?q property:located_on_terrain_feature ?z } GROUP BY ?z } }
[]