Simple Question (Direct)
Simple Question
Q825500
P108
Q19335303
USER
Which German business organization employs Bernhard Kübler ?
(Q825500,P108,c(Q19335303))
action filter_type
action find
entity Q825500
relation P108
type Q19335303
['Q825500', 'P108', {'concept': 'Q19335303'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q19335303 . resource:Q825500 property:P108 ?z }
Bernhard Kübler
action filter_type
action find
entity Bernhard Kübler
relation employer
type type of business entity in Germany
['Bernhard Kübler', 'employer', {'concept': 'type of business entity in Germany'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:type_of_business_entity_in_Germany . resource:Bernhard_Kübler property:employer ?z }
[]
type of business entity in Germany
Q152087
SYSTEM
Humboldt University of Berlin
Q152087
(Q825500,P108,c(Q19335303))
action filter_type
action find
entity Q825500
relation P108
type Q19335303
[ANSWER] employs Bernhard Kübler
['Q825500', 'P108', {'concept': 'Q19335303'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q19335303 . resource:Q825500 property:P108 ?z }
Humboldt University of Berlin
Humboldt University of Berlin employs Bernhard Kübler
Humboldt University of Berlin
action filter_type
action find
entity Bernhard Kübler
relation employer
type type of business entity in Germany
['Bernhard Kübler', 'employer', {'concept': 'type of business entity in Germany'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:type_of_business_entity_in_Germany . resource:Bernhard_Kübler property:employer ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q152087
P88
Q732577
USER
Which publication was commissioned by that German business organization ?
(c(Q732577),P88,Q152087)
action filter_type
action find_reverse
entity Q152087
relation P88
type Q732577
[{'concept': 'Q732577'}, 'P88', 'Q152087']
SELECT DISTINCT ?l WHERE { ?l property:P88 resource:Q152087 . ?l rdf:type ontology:Q732577 }
Humboldt University of Berlin
action filter_type
action find_reverse
entity Humboldt University of Berlin
relation commissioned by
type publication
[{'concept': 'publication'}, 'commissioned by', 'Humboldt University of Berlin']
SELECT DISTINCT ?l WHERE { ?l property:commissioned_by resource:Humboldt_University_of_Berlin . ?l rdf:type ontology:publication }
[]
publication
Q1389846
SYSTEM
Mathematische Nachrichten
Q1389846
(c(Q732577),P88,Q152087)
action filter_type
action find_reverse
entity Q152087
relation P88
type Q732577
[ANSWER] was commissioned by that German business organization
[{'concept': 'Q732577'}, 'P88', 'Q152087']
SELECT DISTINCT ?l WHERE { ?l property:P88 resource:Q152087 . ?l rdf:type ontology:Q732577 }
Mathematische Nachrichten
Mathematische Nachrichten was commissioned by that German business organization
Mathematische Nachrichten
action filter_type
action find_reverse
entity Humboldt University of Berlin
relation commissioned by
type publication
[{'concept': 'publication'}, 'commissioned by', 'Humboldt University of Berlin']
SELECT DISTINCT ?l WHERE { ?l property:commissioned_by resource:Humboldt_University_of_Berlin . ?l rdf:type ontology:publication }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q152087
P1454
Q1269299
USER
Which business organization is the type of legal form of Humboldt University of Berlin ?
(Q152087,P1454,c(Q1269299))
action filter_type
action find
entity Q152087
relation P1454
type Q1269299
['Q152087', 'P1454', {'concept': 'Q1269299'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1269299 . resource:Q152087 property:P1454 ?m }
Humboldt University of Berlin
action filter_type
action find
entity Humboldt University of Berlin
relation legal form
type type of business entity
['Humboldt University of Berlin', 'legal form', {'concept': 'type of business entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:type_of_business_entity . resource:Humboldt_University_of_Berlin property:legal_form ?m }
[]
type of business entity
Q15734684
SYSTEM
Körperschaft des öffentlichen Rechts
Q15734684
(Q152087,P1454,c(Q1269299))
action filter_type
action find
entity Q152087
relation P1454
type Q1269299
[ANSWER] is the type of legal form of Humboldt University of Berlin
['Q152087', 'P1454', {'concept': 'Q1269299'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1269299 . resource:Q152087 property:P1454 ?m }
Körperschaft des öffentlichen Rechts
Körperschaft des öffentlichen Rechts is the type of legal form of Humboldt University of Berlin
Körperschaft des öffentlichen Rechts
action filter_type
action find
entity Humboldt University of Berlin
relation legal form
type type of business entity
['Humboldt University of Berlin', 'legal form', {'concept': 'type of business entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:type_of_business_entity . resource:Humboldt_University_of_Berlin property:legal_form ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q152087
P127
Q811979
USER
Which architectural structure is owned by Humboldt University of Berlin ?
(c(Q811979),P127,Q152087)
action filter_type
action find_reverse
entity Q152087
relation P127
type Q811979
[{'concept': 'Q811979'}, 'P127', 'Q152087']
SELECT DISTINCT ?i WHERE { ?i property:P127 resource:Q152087 . ?i rdf:type ontology:Q811979 }
Humboldt University of Berlin
action filter_type
action find_reverse
entity Humboldt University of Berlin
relation owned by
type architectural structure
[{'concept': 'architectural structure'}, 'owned by', 'Humboldt University of Berlin']
SELECT DISTINCT ?i WHERE { ?i property:owned_by resource:Humboldt_University_of_Berlin . ?i rdf:type ontology:architectural_structure }
[]
architectural structure
Q1884509
SYSTEM
Magnus-Haus
Q1884509
(c(Q811979),P127,Q152087)
action filter_type
action find_reverse
entity Q152087
relation P127
type Q811979
[ANSWER] is owned by Humboldt University of Berlin
[{'concept': 'Q811979'}, 'P127', 'Q152087']
SELECT DISTINCT ?i WHERE { ?i property:P127 resource:Q152087 . ?i rdf:type ontology:Q811979 }
Magnus-Haus
Magnus-Haus is owned by Humboldt University of Berlin
Magnus-Haus
action filter_type
action find_reverse
entity Humboldt University of Berlin
relation owned by
type architectural structure
[{'concept': 'architectural structure'}, 'owned by', 'Humboldt University of Berlin']
SELECT DISTINCT ?i WHERE { ?i property:owned_by resource:Humboldt_University_of_Berlin . ?i rdf:type ontology:architectural_structure }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1884509
P138
Q502895
USER
Which person is that architectural structure named after ?
(Q1884509,P138,c(Q502895))
action filter_type
action find
entity Q1884509
relation P138
type Q502895
['Q1884509', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1884509 property:P138 ?f . ?f rdf:type ontology:Q502895 }
Magnus-Haus
action filter_type
action find
entity Magnus-Haus
relation named after
type common name
['Magnus-Haus', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Magnus-Haus property:named_after ?f . ?f rdf:type ontology:common_name }
[]
common name
Q44318
SYSTEM
Heinrich Gustav Magnus
Q44318
(Q1884509,P138,c(Q502895))
action filter_type
action find
entity Q1884509
relation P138
type Q502895
That architectural structure is named for [ANSWER]
['Q1884509', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1884509 property:P138 ?f . ?f rdf:type ontology:Q502895 }
Heinrich Gustav Magnus
That architectural structure is named for Heinrich Gustav Magnus
Heinrich Gustav Magnus
action filter_type
action find
entity Magnus-Haus
relation named after
type common name
['Magnus-Haus', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Magnus-Haus property:named_after ?f . ?f 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 6402 people ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 6402
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?u <= 6402 ) . { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?n } }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 6402
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?u <= 6402 ) . { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?n } }
[]
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 Q8355 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 6402
[ANSWERS] are played by atmost 6402 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?u <= 6402 ) . { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?n } }
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 violin 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 6402 people
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 6402
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?u <= 6402 ) . { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?n } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q18661427
P180
Q34379 Q1792379
USER
Which art genres depict lesser number of musical instruments than Memorial of the people of Pori ?
(c(Q1792379),P180,c(Q34379))
action less
action find_tuple_counts
relation P180
type Q1792379
type Q34379
action count
action filter_type
action find
entity Q18661427
relation P180
type Q34379
[{'concept': 'Q1792379'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?z ) WHERE { ?c property:P180 ?s . ?c rdf:type ontology:Q1792379 . ?s rdf:type ontology:Q34379 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q18661427 property:P180 ?h . ?h rdf:type ontology:Q34379 } } . FILTER ( ?z < ?y ) }
Memorial of the people of Pori
action less
action find_tuple_counts
relation depicts
type art genre
type musical instrument
action count
action filter_type
action find
entity Memorial of the people of Pori
relation depicts
type musical instrument
[{'concept': 'art genre'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?z ) WHERE { ?c property:depicts ?s . ?c rdf:type ontology:art_genre . ?s rdf:type ontology:musical_instrument } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Memorial_of_the_people_of_Pori property:depicts ?h . ?h rdf:type ontology:musical_instrument } } . FILTER ( ?z < ?y ) }
[]
musical instrument art genre
Q5712848 Q4668641 Q3207118
SYSTEM
Self-Portrait with Monkey, Above and Below, The Ring of Fire
Q21856809 Q26267230 Q1189907 Q22677514 Q3362398 Q2963437 Q22073388 Q26318263 Q4668641 Q22670282 Q2302151 Q5883078 Q3687196 Q18353841 Q22915045 Q26706171 Q26928600 Q5712848 Q3900659 Q742530 Q18688281 Q742333 Q937330 Q3374376 Q1615638 Q22677763 Q22677825 Q6944995 Q248726 Q27087718 Q3207118 Q22670323 Q26317896 Q214127 Q315569 Q1353984 Q3399515 Q158607 Q659396 Q18559971 Q18917896 Q26709687 Q22575803 Q1339864 Q2415378 Q191163 Q18579186 Q5448026 Q12303833 Q22677734 Q26668969
(c(Q1792379),P180,c(Q34379))
action less
action find_tuple_counts
relation P180
type Q1792379
type Q34379
action count
action filter_type
action find
entity Q18661427
relation P180
type Q34379
[ANSWERS] depict lesser number of musical instruments than Memorial of the people of Pori
[{'concept': 'Q1792379'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?z ) WHERE { ?c property:P180 ?s . ?c rdf:type ontology:Q1792379 . ?s rdf:type ontology:Q34379 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q18661427 property:P180 ?h . ?h rdf:type ontology:Q34379 } } . FILTER ( ?z < ?y ) }
Selim Palmgren Portrait of a king of marksmen (presumably Jacobus Albertus de Backer) Water Lilies Market place parliament Panorama du Caire One Thousand Pictures of the Ocean (Chie no umi) Henry M. Jackson Bust of Edward VII Above and Below Crying girl animal painting Hollywood novel Christ's Charge to Peter Architectural painting Zinc sculptures of the Pori town hall Sir Austen Henry Layard Existentialist literature Self-Portrait with Monkey The Miraculous Draught of Fishes idyll Portrait of A.S.Pushkin history painting kouros mythological painting submarine films Statue of Risto Ryti Maire-sculpture My Bed Venus figurine Bust Of Sir Henry Tate, Outside Tate Library, Brixton Oval The Ring of Fire JUHANA III - The king of Sweden 1568-1592 -relief Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury genre painting Karl Marx Monument landscape photography equestrian portrait marine art equestrian statue Rock art at Åbodsjön history sculpture Antoine Coypel Going swimming, from the theme mother and child sports film schutterstuk landscape art Petrus Franciscus Greive (1811-1872) figure painting floral painting Statue of Duke John Bust Of Sir Joseph Paxton At Crystal Palace Park
Self-Portrait with Monkey, Above and Below and The Ring of Fire depict lesser number of musical instruments than Memorial of the people of Pori
Self-Portrait with Monkey Above and Below The Ring of Fire
action less
action find_tuple_counts
relation depicts
type art genre
type musical instrument
action count
action filter_type
action find
entity Memorial of the people of Pori
relation depicts
type musical instrument
[{'concept': 'art genre'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?z ) WHERE { ?c property:depicts ?s . ?c rdf:type ontology:art_genre . ?s rdf:type ontology:musical_instrument } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Memorial_of_the_people_of_Pori property:depicts ?h . ?h rdf:type ontology:musical_instrument } } . FILTER ( ?z < ?y ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15619164 Q811430 Q1792379
USER
How many art genres depict atleast 1 abstract beings or constructions ?
(c(Q1792379),P180,c(Q15619164)|c(Q811430))
action count
action atleast
action union
action find_tuple_counts
relation P180
type Q1792379
type Q15619164
action find_tuple_counts
relation P180
type Q1792379
type Q811430
value 1
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q15619164'}, {'concept': 'Q811430'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { FILTER ( ?i >= 1 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) ?l WHERE { { ?l rdf:type ontology:Q1792379 . ?p rdf:type ontology:Q15619164 . ?l property:P180 ?p } UNION { ?l rdf:type ontology:Q1792379 . ?p rdf:type ontology:Q811430 . ?l property:P180 ?p } } GROUP BY ?l } }
action count
action atleast
action union
action find_tuple_counts
relation depicts
type art genre
type abstract being
action find_tuple_counts
relation depicts
type art genre
type construction
value 1
[{'concept': 'art genre'}, 'depicts', [{'concept': 'abstract being'}, {'concept': 'construction'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { FILTER ( ?i >= 1 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) ?l WHERE { { ?l rdf:type ontology:art_genre . ?p rdf:type ontology:abstract_being . ?l property:depicts ?p } UNION { ?l rdf:type ontology:art_genre . ?p rdf:type ontology:construction . ?l property:depicts ?p } } GROUP BY ?l } }
[]
abstract being construction art genre
SYSTEM
4
Q3687196 Q18353841 Q22915045 Q3900659
(c(Q1792379),P180,c(Q15619164)|c(Q811430))
action count
action atleast
action union
action find_tuple_counts
relation P180
type Q1792379
type Q15619164
action find_tuple_counts
relation P180
type Q1792379
type Q811430
value 1
[ANSWER]
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q15619164'}, {'concept': 'Q811430'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { FILTER ( ?i >= 1 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) ?l WHERE { { ?l rdf:type ontology:Q1792379 . ?p rdf:type ontology:Q15619164 . ?l property:P180 ?p } UNION { ?l rdf:type ontology:Q1792379 . ?p rdf:type ontology:Q811430 . ?l property:P180 ?p } } GROUP BY ?l } }
Christ's Charge to Peter Architectural painting Zinc sculptures of the Pori town hall The Miraculous Draught of Fishes
4
action count
action atleast
action union
action find_tuple_counts
relation depicts
type art genre
type abstract being
action find_tuple_counts
relation depicts
type art genre
type construction
value 1
[{'concept': 'art genre'}, 'depicts', [{'concept': 'abstract being'}, {'concept': 'construction'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { FILTER ( ?i >= 1 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) ?l WHERE { { ?l rdf:type ontology:art_genre . ?p rdf:type ontology:abstract_being . ?l property:depicts ?p } UNION { ?l rdf:type ontology:art_genre . ?p rdf:type ontology:construction . ?l property:depicts ?p } } GROUP BY ?l } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q22981014 Q5712848
P17
Q15617994
USER
Which administrative territories are Self-Portrait with Monkey or Tawakal Nursery School a part of ?
OR((Q5712848,P17,c(Q15617994)), (Q22981014,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5712848
relation P17
action find
entity Q22981014
relation P17
type Q15617994
{'OR': [['Q5712848', 'P17', {'concept': 'Q15617994'}], ['Q22981014', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q5712848 property:P17 ?z } UNION { resource:Q22981014 property:P17 ?z } } . ?z rdf:type ontology:Q15617994 }
Tawakal Nursery School Self-Portrait with Monkey
action filter_type
action union
action find
entity Self-Portrait with Monkey
relation country
action find
entity Tawakal Nursery School
relation country
type designation for an administrative territorial entity
{'OR': [['Self-Portrait with Monkey', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tawakal Nursery School', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Self-Portrait_with_Monkey property:country ?z } UNION { resource:Tawakal_Nursery_School property:country ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1036 Q30
SYSTEM
Uganda, United States of America
Q1036 Q30
OR((Q5712848,P17,c(Q15617994)), (Q22981014,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5712848
relation P17
action find
entity Q22981014
relation P17
type Q15617994
[ANSWERS] are Self-Portrait with Monkey or Tawakal Nursery School a part of
{'OR': [['Q5712848', 'P17', {'concept': 'Q15617994'}], ['Q22981014', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q5712848 property:P17 ?z } UNION { resource:Q22981014 property:P17 ?z } } . ?z rdf:type ontology:Q15617994 }
Uganda United States of America
Uganda and United States of America are Self-Portrait with Monkey or Tawakal Nursery School a part of
Uganda United States of America
action filter_type
action union
action find
entity Self-Portrait with Monkey
relation country
action find
entity Tawakal Nursery School
relation country
type designation for an administrative territorial entity
{'OR': [['Self-Portrait with Monkey', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tawakal Nursery School', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Self-Portrait_with_Monkey property:country ?z } UNION { resource:Tawakal_Nursery_School property:country ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1036 Q30
P163
Q14660
USER
Which flags are associated with those administrative territories ?
(Q1036,P163,c(Q14660)) (Q30,P163,c(Q14660))
action filter_type
action find
entity prev_answer
relation P163
type Q14660
['Q1036', 'P163', {'concept': 'Q14660'}] ['Q30', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?v ) { ( resource:Q1036 ) ( resource:Q30 ) } . ?u rdf:type ontology:Q14660 . ?v property:P163 ?u }
Uganda United States of America
action filter_type
action find
entity prev_answer
relation flag
type flag
['Uganda', 'flag', {'concept': 'flag'}] ['United States of America', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?v ) { ( resource:Uganda ) ( resource:United_States_of_America ) } . ?u rdf:type ontology:flag . ?v property:flag ?u }
[]
flag
Q103037 Q42537
SYSTEM
Flag of Uganda, flag of the United States of America
Q103037 Q42537
(Q1036,P163,c(Q14660)) (Q30,P163,c(Q14660))
action filter_type
action find
entity prev_answer
relation P163
type Q14660
[ANSWERS] are associated with those administrative territories
['Q1036', 'P163', {'concept': 'Q14660'}] ['Q30', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?v ) { ( resource:Q1036 ) ( resource:Q30 ) } . ?u rdf:type ontology:Q14660 . ?v property:P163 ?u }
Flag of Uganda flag of the United States of America
Flag of Uganda and flag of the United States of America are associated with those administrative territories
Flag of Uganda flag of the United States of America
action filter_type
action find
entity prev_answer
relation flag
type flag
['Uganda', 'flag', {'concept': 'flag'}] ['United States of America', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?v ) { ( resource:Uganda ) ( resource:United_States_of_America ) } . ?u rdf:type ontology:flag . ?v property:flag ?u }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q103037 Q42537
P163
Q15617994
USER
Which administrative territories have flag named Flag of Uganda and flag of the United States of America ?
(c(Q15617994),P163,Q103037) (c(Q15617994),P163,Q42537)
action union
action filter_type
action find_reverse
entity Q103037
relation P163
type Q15617994
action filter_type
action find_reverse
entity Q42537
relation P163
type Q15617994
[{'concept': 'Q15617994'}, 'P163', 'Q103037'] [{'concept': 'Q15617994'}, 'P163', 'Q42537']
SELECT DISTINCT ?e WHERE { ?e property:P163 ?u . VALUES ( ?u ) { ( resource:Q103037 ) ( resource:Q42537 ) } }
Flag of Uganda flag of the United States of America
action union
action filter_type
action find_reverse
entity Flag of Uganda
relation flag
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity flag of the United States of America
relation flag
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'flag', 'Flag of Uganda'] [{'concept': 'designation for an administrative territorial entity'}, 'flag', 'flag of the United States of America']
SELECT DISTINCT ?e WHERE { ?e property:flag ?u . VALUES ( ?u ) { ( resource:Flag_of_Uganda ) ( resource:flag_of_the_United_States_of_America ) } }
[]
designation for an administrative territorial entity
Q1036 Q30
SYSTEM
Uganda, United States of America
Q1036 Q30
(c(Q15617994),P163,Q103037) (c(Q15617994),P163,Q42537)
action union
action filter_type
action find_reverse
entity Q103037
relation P163
type Q15617994
action filter_type
action find_reverse
entity Q42537
relation P163
type Q15617994
And [ANSWERS] have flag named Flag of Uganda and flag of the United States of America
[{'concept': 'Q15617994'}, 'P163', 'Q103037'] [{'concept': 'Q15617994'}, 'P163', 'Q42537']
SELECT DISTINCT ?e WHERE { ?e property:P163 ?u . VALUES ( ?u ) { ( resource:Q103037 ) ( resource:Q42537 ) } }
Uganda United States of America
And Uganda and United States of America have flag named Flag of Uganda and flag of the United States of America
Uganda United States of America
action union
action filter_type
action find_reverse
entity Flag of Uganda
relation flag
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity flag of the United States of America
relation flag
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'flag', 'Flag of Uganda'] [{'concept': 'designation for an administrative territorial entity'}, 'flag', 'flag of the United States of America']
SELECT DISTINCT ?e WHERE { ?e property:flag ?u . VALUES ( ?u ) { ( resource:Flag_of_Uganda ) ( resource:flag_of_the_United_States_of_America ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q30
P162
Q838948
USER
Which work of art has been produced by that administrative territory ?
(c(Q838948),P162,Q30)
action filter_type
action find_reverse
entity Q30
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q30']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q838948 . ?w property:P162 resource:Q30 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'United States of America']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:work_of_art . ?w property:producer resource:United_States_of_America }
[]
work of art
Clarification for simple ques.
Q1036
SYSTEM
Did you mean Uganda ?
Q1036 Q30
(c(Q838948),P162,Q1036) (c(Q838948),P162,Q30)
[ANSWER]
[{'concept': 'Q838948'}, 'P162', 'Q1036'] [{'concept': 'Q838948'}, 'P162', 'Q30']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q838948 . ?w property:P162 resource:Q30 }
Uganda United States of America
Did you mean Uganda ?
Uganda
[{'concept': 'work of art'}, 'producer', 'Uganda'] [{'concept': 'work of art'}, 'producer', 'United States of America']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:work_of_art . ?w property:producer resource:United_States_of_America }
[]
Simple Question (Coreferenced)
USER
No, I meant United States of America. Could you tell me the answer for that?
(c(Q838948),P162,Q30)
Q30
[{'concept': 'Q838948'}, 'P162', 'Q30']
[{'concept': 'work of art'}, 'producer', 'United States of America']
[]
Q1193742
SYSTEM
The Thief of Bagdad
Q1193742
(c(Q838948),P162,Q30)
action filter_type
action find_reverse
entity Q30
relation P162
type Q838948
[ANSWER] has been produced by that administrative territory
[{'concept': 'Q838948'}, 'P162', 'Q30']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q838948 . ?w property:P162 resource:Q30 }
The Thief of Bagdad
The Thief of Bagdad has been produced by that administrative territory
The Thief of Bagdad
action filter_type
action find_reverse
entity United States of America
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'United States of America']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:work_of_art . ?w property:producer resource:United_States_of_America }
[]