Simple Question (Direct)
Simple Question
Q681522
P27
Q15617994
USER
Which administrative territory is István Iglódi a civilian of ?
(Q681522,P27,c(Q15617994))
action filter_type
action find
entity Q681522
relation P27
type Q15617994
['Q681522', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q681522 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
István Iglódi
action filter_type
action find
entity István Iglódi
relation country of citizenship
type designation for an administrative territorial entity
['István Iglódi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:István_Iglódi property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q681522,P27,c(Q15617994))
action filter_type
action find
entity Q681522
relation P27
type Q15617994
[ANSWER] is István Iglódi a civilian of
['Q681522', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q681522 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Hungary
Hungary is István Iglódi a civilian of
Hungary
action filter_type
action find
entity István Iglódi
relation country of citizenship
type designation for an administrative territorial entity
['István Iglódi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:István_Iglódi property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q681522
P161
Q838948
USER
Which works of art do István Iglódi star in ?
(c(Q838948),P161,Q681522)
action filter_type
action find_reverse
entity Q681522
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q681522']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q838948 . ?h property:P161 resource:Q681522 }
István Iglódi
action filter_type
action find_reverse
entity István Iglódi
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'István Iglódi']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:work_of_art . ?h property:cast_member resource:István_Iglódi }
[]
work of art
Q1585569 Q7846356 Q467878
SYSTEM
Husaren in Berlin, Trotta, The Testament of Aga Koppanyi
Q1585569 Q467878 Q7846356 Q1003197 Q3211637
(c(Q838948),P161,Q681522)
action filter_type
action find_reverse
entity Q681522
relation P161
type Q838948
István Iglódi star ast [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q681522']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q838948 . ?h property:P161 resource:Q681522 }
Husaren in Berlin The Testament of Aga Koppanyi Trotta Photography The Upthrown Stone
István Iglódi star ast Husaren in Berlin, Trotta and The Testament of Aga Koppanyi
Husaren in Berlin Trotta The Testament of Aga Koppanyi
action filter_type
action find_reverse
entity István Iglódi
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'István Iglódi']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:work_of_art . ?h property:cast_member resource:István_Iglódi }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7846356
P86
Q502895
USER
Which person composed Trotta ?
(Q7846356,P86,c(Q502895))
action filter_type
action find
entity Q7846356
relation P86
type Q502895
['Q7846356', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q7846356 property:P86 ?q . ?q rdf:type ontology:Q502895 }
Trotta
action filter_type
action find
entity Trotta
relation composer
type common name
['Trotta', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Trotta property:composer ?q . ?q rdf:type ontology:common_name }
[]
common name
Q68623
SYSTEM
Eberhard Schoener
Q68623
(Q7846356,P86,c(Q502895))
action filter_type
action find
entity Q7846356
relation P86
type Q502895
[ANSWER] composed Trotta
['Q7846356', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q7846356 property:P86 ?q . ?q rdf:type ontology:Q502895 }
Eberhard Schoener
Eberhard Schoener composed Trotta
Eberhard Schoener
action filter_type
action find
entity Trotta
relation composer
type common name
['Trotta', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Trotta property:composer ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7846356
P58
Q502895
USER
Who wrote the script for that work of art ?
(Q68623,P58,c(Q502895))
action filter_type
action find
entity Q7846356
relation P58
type Q502895
['Q68623', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q7846356 property:P58 ?x . ?x rdf:type ontology:Q502895 }
Trotta
action filter_type
action find
entity Trotta
relation screenwriter
type common name
['Eberhard Schoener', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Trotta property:screenwriter ?x . ?x rdf:type ontology:common_name }
[]
common name
Q90311 Q153018
SYSTEM
Johannes Schaaf, Maximilian Schell
Q90311 Q153018
(Q68623,P58,c(Q502895))
action filter_type
action find
entity Q7846356
relation P58
type Q502895
[ANSWERS] wrote the script for that work of art
['Q68623', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q7846356 property:P58 ?x . ?x rdf:type ontology:Q502895 }
Johannes Schaaf Maximilian Schell
Johannes Schaaf and Maximilian Schell wrote the script for that work of art
Johannes Schaaf Maximilian Schell
action filter_type
action find
entity Trotta
relation screenwriter
type common name
['Eberhard Schoener', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Trotta property:screenwriter ?x . ?x rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by atmost 3394 people ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3394
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:P1303 ?x . ?z rdf:type ontology:Q502895 . ?x rdf:type ontology:Q34379 } GROUP BY ?x } . FILTER ( ?k <= 3394 ) }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3394
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:instrument ?x . ?z rdf:type ontology:common_name . ?x rdf:type ontology:musical_instrument } GROUP BY ?x } . FILTER ( ?k <= 3394 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3394
[ANSWERS] are played by atmost 3394 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:P1303 ?x . ?z rdf:type ontology:Q502895 . ?x rdf:type ontology:Q34379 } GROUP BY ?x } . FILTER ( ?k <= 3394 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano are played by atmost 3394 people
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3394
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:instrument ?x . ?z rdf:type ontology:common_name . ?x rdf:type ontology:musical_instrument } GROUP BY ?x } . FILTER ( ?k <= 3394 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q390946 Q1759986
P17
Q15617994
USER
Which administrative territories are Wurlitzer electric piano or Šahy located in ?
OR((Q1759986,P17,c(Q15617994)), (Q390946,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1759986
relation P17
action find
entity Q390946
relation P17
type Q15617994
{'OR': [['Q1759986', 'P17', {'concept': 'Q15617994'}], ['Q390946', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { ?w property:P17 ?f . VALUES ( ?w ) { ( resource:Q1759986 ) ( resource:Q390946 ) } } }
Šahy Wurlitzer electric piano
action filter_type
action union
action find
entity Wurlitzer electric piano
relation country
action find
entity Šahy
relation country
type designation for an administrative territorial entity
{'OR': [['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Šahy', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?w property:country ?f . VALUES ( ?w ) { ( resource:Wurlitzer_electric_piano ) ( resource:Šahy ) } } }
[]
designation for an administrative territorial entity
Q30 Q214
SYSTEM
United States of America, Slovakia
Q30 Q214
OR((Q1759986,P17,c(Q15617994)), (Q390946,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1759986
relation P17
action find
entity Q390946
relation P17
type Q15617994
Wurlitzer electric piano or Šahy are located in [ANSWERS]
{'OR': [['Q1759986', 'P17', {'concept': 'Q15617994'}], ['Q390946', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { ?w property:P17 ?f . VALUES ( ?w ) { ( resource:Q1759986 ) ( resource:Q390946 ) } } }
United States of America Slovakia
Wurlitzer electric piano or Šahy are located in United States of America and Slovakia
United States of America Slovakia
action filter_type
action union
action find
entity Wurlitzer electric piano
relation country
action find
entity Šahy
relation country
type designation for an administrative territorial entity
{'OR': [['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Šahy', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?w property:country ?f . VALUES ( ?w ) { ( resource:Wurlitzer_electric_piano ) ( resource:Šahy ) } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have diplomatic associations with those administrative territories ?
(Q183,P530,Q30) (Q183,P530,Q214)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q30'] ['Q183', 'P530', 'Q214']
ASK WHERE { VALUES ( ?u ) { ( resource:Q30 ) ( resource:Q214 ) } . resource:Q183 property:P530 ?u }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'United States of America'] ['Germany', 'diplomatic relation', 'Slovakia']
ASK WHERE { VALUES ( ?u ) { ( resource:United_States_of_America ) ( resource:Slovakia ) } . resource:Germany property:diplomatic_relation ?u }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q30) (Q183,P530,Q214)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q30'] ['Q183', 'P530', 'Q214']
ASK WHERE { VALUES ( ?u ) { ( resource:Q30 ) ( resource:Q214 ) } . resource:Q183 property:P530 ?u }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'United States of America'] ['Germany', 'diplomatic relation', 'Slovakia']
ASK WHERE { VALUES ( ?u ) { ( resource:United_States_of_America ) ( resource:Slovakia ) } . resource:Germany property:diplomatic_relation ?u }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q153018 Q277751
P1411
Q4220917
USER
Was Maximilian Schell a recipient of Academy Award for Best Production Design ?
(Q153018,P1411,Q277751)
action is_in
entity Q277751
action find
entity Q153018
relation P1411
['Q153018', 'P1411', 'Q277751']
ASK WHERE { resource:Q153018 property:P1411 resource:Q277751 }
Maximilian Schell Academy Award for Best Production Design
action is_in
entity Academy Award for Best Production Design
action find
entity Maximilian Schell
relation nominated for
['Maximilian Schell', 'nominated for', 'Academy Award for Best Production Design']
ASK WHERE { resource:Maximilian_Schell property:nominated_for resource:Academy_Award_for_Best_Production_Design }
[]
film award
SYSTEM
NO
(Q153018,P1411,Q277751)
action is_in
entity Q277751
action find
entity Q153018
relation P1411
[ANSWER]
['Q153018', 'P1411', 'Q277751']
ASK WHERE { resource:Q153018 property:P1411 resource:Q277751 }
No
action is_in
entity Academy Award for Best Production Design
action find
entity Maximilian Schell
relation nominated for
['Maximilian Schell', 'nominated for', 'Academy Award for Best Production Design']
ASK WHERE { resource:Maximilian_Schell property:nominated_for resource:Academy_Award_for_Best_Production_Design }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q485850 Q7846356
P495 P17
Q1048835
USER
Which political territories are the origin of Trotta or are Zeven located in ?
OR((Q7846356,P495,c(Q1048835)), (Q485850,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q7846356
relation P495
action find
entity Q485850
relation P17
type Q1048835
{'OR': [['Q7846356', 'P495', {'concept': 'Q1048835'}], ['Q485850', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q485850 property:P17 ?h } UNION { resource:Q7846356 property:P495 ?h } } . ?h rdf:type ontology:Q1048835 }
Zeven Trotta
action filter_type
action union
action find
entity Trotta
relation country of origin
action find
entity Zeven
relation country
type political territorial entity
{'OR': [['Trotta', 'country of origin', {'concept': 'political territorial entity'}], ['Zeven', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Zeven property:country ?h } UNION { resource:Trotta property:country_of_origin ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
OR((Q7846356,P495,c(Q1048835)), (Q485850,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q7846356
relation P495
action find
entity Q485850
relation P17
type Q1048835
Which political territories is the origin of Trotta or is Zeven located in
{'OR': [['Q7846356', 'P495', {'concept': 'Q1048835'}], ['Q485850', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q485850 property:P17 ?h } UNION { resource:Q7846356 property:P495 ?h } } . ?h rdf:type ontology:Q1048835 }
Germany
Which political territories is the origin of Trotta or is Zeven located in
Germany
action filter_type
action union
action find
entity Trotta
relation country of origin
action find
entity Zeven
relation country
type political territorial entity
{'OR': [['Trotta', 'country of origin', {'concept': 'political territorial entity'}], ['Zeven', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Zeven property:country ?h } UNION { resource:Trotta property:country_of_origin ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P870
Q34379 Q15850590 Q188451
USER
Which musical instruments are the instrumentations used in max number of theatrical genres or music genres ?
(c(Q15850590)|c(Q188451),P870,c(Q34379))
action argmax
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action find_reverse_tuple_counts
relation P870
type Q34379
type Q188451
[[{'concept': 'Q15850590'}, {'concept': 'Q188451'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) ?h WHERE { { ?r property:P870 ?h . ?h rdf:type ontology:Q34379 . ?r rdf:type ontology:Q188451 } UNION { ?r property:P870 ?h . ?h rdf:type ontology:Q34379 . ?r rdf:type ontology:Q15850590 } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) ?m WHERE { { ?l property:P870 ?m . ?l rdf:type ontology:Q15850590 . ?m rdf:type ontology:Q34379 } UNION { ?l property:P870 ?m . ?m rdf:type ontology:Q34379 . ?l rdf:type ontology:Q188451 } } GROUP BY ?m } . FILTER ( ?q = ?w ) }
action argmax
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type music genre
[[{'concept': 'theatrical genre'}, {'concept': 'music genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) ?h WHERE { { ?r property:instrumentation ?h . ?h rdf:type ontology:musical_instrument . ?r rdf:type ontology:music_genre } UNION { ?r property:instrumentation ?h . ?h rdf:type ontology:musical_instrument . ?r rdf:type ontology:theatrical_genre } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) ?m WHERE { { ?l property:instrumentation ?m . ?l rdf:type ontology:theatrical_genre . ?m rdf:type ontology:musical_instrument } UNION { ?l property:instrumentation ?m . ?m rdf:type ontology:musical_instrument . ?l rdf:type ontology:music_genre } } GROUP BY ?m } . FILTER ( ?q = ?w ) }
[]
musical instrument theatrical genre music genre
Q5994
SYSTEM
piano
Q5994
(c(Q15850590)|c(Q188451),P870,c(Q34379))
action argmax
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action find_reverse_tuple_counts
relation P870
type Q34379
type Q188451
[ANSWER] is the instrumentations used in max number of theatrical genres or music genres
[[{'concept': 'Q15850590'}, {'concept': 'Q188451'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) ?h WHERE { { ?r property:P870 ?h . ?h rdf:type ontology:Q34379 . ?r rdf:type ontology:Q188451 } UNION { ?r property:P870 ?h . ?h rdf:type ontology:Q34379 . ?r rdf:type ontology:Q15850590 } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) ?m WHERE { { ?l property:P870 ?m . ?l rdf:type ontology:Q15850590 . ?m rdf:type ontology:Q34379 } UNION { ?l property:P870 ?m . ?m rdf:type ontology:Q34379 . ?l rdf:type ontology:Q188451 } } GROUP BY ?m } . FILTER ( ?q = ?w ) }
piano
Piano is the instrumentations used in max number of theatrical genres or music genres
piano
action argmax
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type music genre
[[{'concept': 'theatrical genre'}, {'concept': 'music genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) ?h WHERE { { ?r property:instrumentation ?h . ?h rdf:type ontology:musical_instrument . ?r rdf:type ontology:music_genre } UNION { ?r property:instrumentation ?h . ?h rdf:type ontology:musical_instrument . ?r rdf:type ontology:theatrical_genre } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) ?m WHERE { { ?l property:instrumentation ?m . ?l rdf:type ontology:theatrical_genre . ?m rdf:type ontology:musical_instrument } UNION { ?l property:instrumentation ?m . ?m rdf:type ontology:musical_instrument . ?l rdf:type ontology:music_genre } } GROUP BY ?m } . FILTER ( ?q = ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q19960631
P180
Q34379 Q340169
USER
Which medias express greater number of musical instruments than Study for Le fils puni ?
(c(Q340169),P180,c(Q34379))
action greater
action find_tuple_counts
relation P180
type Q340169
type Q34379
action count
action filter_type
action find
entity Q19960631
relation P180
type Q340169
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m rdf:type ontology:Q340169 . resource:Q19960631 property:P180 ?m } } . FILTER ( ?e > ?d ) . { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?e ) WHERE { ?x rdf:type ontology:Q340169 . ?r rdf:type ontology:Q34379 . ?x property:P180 ?r } GROUP BY ?x } }
Study for Le fils puni
action greater
action find_tuple_counts
relation depicts
type media
type musical instrument
action count
action filter_type
action find
entity Study for Le fils puni
relation depicts
type media
[{'concept': 'media'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m rdf:type ontology:media . resource:Study_for_Le_fils_puni property:depicts ?m } } . FILTER ( ?e > ?d ) . { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?e ) WHERE { ?x rdf:type ontology:media . ?r rdf:type ontology:musical_instrument . ?x property:depicts ?r } GROUP BY ?x } }
[]
musical instrument media
Q19868516 Q17519439
SYSTEM
Violin Hanging on a Wall, Achille Henri Victor Gouffé
Q19868516 Q17519439
(c(Q340169),P180,c(Q34379))
action greater
action find_tuple_counts
relation P180
type Q340169
type Q34379
action count
action filter_type
action find
entity Q19960631
relation P180
type Q340169
Violin hanging on a Wall and Achille Henri Victor Gouffé express greater number of musical instruments than Study for Le fils puni
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m rdf:type ontology:Q340169 . resource:Q19960631 property:P180 ?m } } . FILTER ( ?e > ?d ) . { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?e ) WHERE { ?x rdf:type ontology:Q340169 . ?r rdf:type ontology:Q34379 . ?x property:P180 ?r } GROUP BY ?x } }
Violin Hanging on a Wall Achille Henri Victor Gouffé
Violin hanging on a Wall and Achille Henri Victor Gouffé express greater number of musical instruments than Study for Le fils puni
Violin Hanging on a Wall Achille Henri Victor Gouffé
action greater
action find_tuple_counts
relation depicts
type media
type musical instrument
action count
action filter_type
action find
entity Study for Le fils puni
relation depicts
type media
[{'concept': 'media'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m rdf:type ontology:media . resource:Study_for_Le_fils_puni property:depicts ?m } } . FILTER ( ?e > ?d ) . { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?e ) WHERE { ?x rdf:type ontology:media . ?r rdf:type ontology:musical_instrument . ?x property:depicts ?r } GROUP BY ?x } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1030
P530
Q15617994 Q15617994 Q1048835
USER
How many administrative territories have a diplomatic relationship with lesser number of administrative territories or political territories than Namibia ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q1030
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) ?k WHERE { { ?k rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 . ?x property:P530 ?k } UNION { ?x property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:P530 resource:Q1030 . { { ?b rdf:type ontology:Q15617994 } UNION { ?b rdf:type ontology:Q1048835 } } } } . FILTER ( ?v < ?s ) }
Namibia
action count
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Namibia
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) ?k WHERE { { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?k } UNION { ?x property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:diplomatic_relation resource:Namibia . { { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?v < ?s ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
102
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q924 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q736 Q786 Q228 Q225 Q221 Q96 Q902 Q1036 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q750 Q211 Q217 Q214 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q858 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q1030
relation P530
type Q15617994
type Q1048835
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) ?k WHERE { { ?k rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 . ?x property:P530 ?k } UNION { ?x property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:P530 resource:Q1030 . { { ?b rdf:type ontology:Q15617994 } UNION { ?b rdf:type ontology:Q1048835 } } } } . FILTER ( ?v < ?s ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Tanzania Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Ecuador Dominican Republic Andorra Bosnia and Herzegovina Republic of Macedonia Mexico Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Syria Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia Thailand
102
action count
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Namibia
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) ?k WHERE { { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?k } UNION { ?x property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:diplomatic_relation resource:Namibia . { { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?v < ?s ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q153018
P7
Q502895
USER
Who are siblings of Maximilian Schell ?
(c(Q502895),P7,Q153018)
action filter_type
action find_reverse
entity Q153018
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q153018']
SELECT DISTINCT ?t WHERE { ?t property:P7 resource:Q153018 . ?t rdf:type ontology:Q502895 }
Maximilian Schell
action filter_type
action find_reverse
entity Maximilian Schell
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Maximilian Schell']
SELECT DISTINCT ?t WHERE { ?t property:brother resource:Maximilian_Schell . ?t rdf:type ontology:common_name }
[]
common name
Q120875 Q84365 Q86750
SYSTEM
Carl Schell, Maria Schell, Immy Schell
Q120875 Q84365 Q86750
(c(Q502895),P7,Q153018)
action filter_type
action find_reverse
entity Q153018
relation P7
type Q502895
Siblings of Maximilian Schell are [ANSWERS]
[{'concept': 'Q502895'}, 'P7', 'Q153018']
SELECT DISTINCT ?t WHERE { ?t property:P7 resource:Q153018 . ?t rdf:type ontology:Q502895 }
Carl Schell Maria Schell Immy Schell
Siblings of Maximilian Schell are Carl Schell, Maria Schell and Immy Schell
Carl Schell Maria Schell Immy Schell
action filter_type
action find_reverse
entity Maximilian Schell
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Maximilian Schell']
SELECT DISTINCT ?t WHERE { ?t property:brother resource:Maximilian_Schell . ?t rdf:type ontology:common_name }
[]