Simple Question (Direct)
Simple Question
Q2574406
P27
Q1048835
USER
Which political territory does Wilhelm Paetzel belong to ?
(Q2574406,P27,c(Q1048835))
action filter_type
action find
entity Q2574406
relation P27
type Q1048835
['Q2574406', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q2574406 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Wilhelm Paetzel
action filter_type
action find
entity Wilhelm Paetzel
relation country of citizenship
type political territorial entity
['Wilhelm Paetzel', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Wilhelm_Paetzel property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q2574406,P27,c(Q1048835))
action filter_type
action find
entity Q2574406
relation P27
type Q1048835
Wilhelm Paetzel belongs to [ANSWER]
['Q2574406', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q2574406 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Germany
Wilhelm Paetzel belongs to Germany
Germany
action filter_type
action find
entity Wilhelm Paetzel
relation country of citizenship
type political territorial entity
['Wilhelm Paetzel', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Wilhelm_Paetzel property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P937
Q502895
USER
Who are an people who works at that political territory ?
(c(Q502895),P937,Q183)
action filter_type
action find_reverse
entity Q183
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q183']
SELECT DISTINCT ?u WHERE { ?u property:P937 resource:Q183 . ?u rdf:type ontology:Q502895 }
Germany
action filter_type
action find_reverse
entity Germany
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Germany']
SELECT DISTINCT ?u WHERE { ?u property:work_location resource:Germany . ?u rdf:type ontology:common_name }
[]
common name
Q442048 Q698102 Q325922
SYSTEM
Snježana Kordić, William Patrick Stuart-Houston, Hans Aarsman
Q442048 Q20890576 Q698102 Q325922 Q18516466
(c(Q502895),P937,Q183)
action filter_type
action find_reverse
entity Q183
relation P937
type Q502895
An people works at that political territory are [ANSWERS]
[{'concept': 'Q502895'}, 'P937', 'Q183']
SELECT DISTINCT ?u WHERE { ?u property:P937 resource:Q183 . ?u rdf:type ontology:Q502895 }
Snježana Kordić Roman Lipski William Patrick Stuart-Houston Hans Aarsman Clement de Jonghe
An people works at that political territory are Snježana Kordić, William Patrick Stuart-Houston and Hans Aarsman
Snježana Kordić William Patrick Stuart-Houston Hans Aarsman
action filter_type
action find_reverse
entity Germany
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Germany']
SELECT DISTINCT ?u WHERE { ?u property:work_location resource:Germany . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q442048 Q698102 Q325922
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Snježana Kordić, William Patrick Stuart-Houston and Hans Aarsman ?
(Q442048,P27,c(Q15617994)) (Q698102,P27,c(Q15617994)) (Q325922,P27,c(Q15617994))
action union
action filter_type
action find
entity Q442048
relation P27
type Q15617994
action filter_type
action find
entity Q698102
relation P27
type Q15617994
action filter_type
action find
entity Q325922
relation P27
type Q15617994
['Q442048', 'P27', {'concept': 'Q15617994'}] ['Q698102', 'P27', {'concept': 'Q15617994'}] ['Q325922', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { resource:Q442048 property:P27 ?r . ?r rdf:type ontology:Q15617994 } UNION { resource:Q698102 property:P27 ?r . ?r rdf:type ontology:Q15617994 } }
Snježana Kordić William Patrick Stuart-Houston Hans Aarsman
action union
action filter_type
action find
entity Snježana Kordić
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity William Patrick Stuart-Houston
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Hans Aarsman
relation country of citizenship
type designation for an administrative territorial entity
['Snježana Kordić', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['William Patrick Stuart-Houston', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Hans Aarsman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { resource:Snježana_Kordić property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:William_Patrick_Stuart-Houston property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q30 Q145 Q224
SYSTEM
United States of America, United Kingdom, Croatia
Q224 Q27 Q30 Q145 Q29999
(Q442048,P27,c(Q15617994)) (Q698102,P27,c(Q15617994)) (Q325922,P27,c(Q15617994))
action union
action filter_type
action find
entity Q442048
relation P27
type Q15617994
action filter_type
action find
entity Q698102
relation P27
type Q15617994
action filter_type
action find
entity Q325922
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Snježana Kordić, William Patrick Stuart-Houston and Hans Aarsman
['Q442048', 'P27', {'concept': 'Q15617994'}] ['Q698102', 'P27', {'concept': 'Q15617994'}] ['Q325922', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { resource:Q442048 property:P27 ?r . ?r rdf:type ontology:Q15617994 } UNION { resource:Q698102 property:P27 ?r . ?r rdf:type ontology:Q15617994 } }
Croatia Ireland United States of America United Kingdom Kingdom of the Netherlands
United States of America, United Kingdom and Croatia are the countries of citizenship of Snježana Kordić, William Patrick Stuart-Houston and Hans Aarsman
United States of America United Kingdom Croatia
action union
action filter_type
action find
entity Snježana Kordić
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity William Patrick Stuart-Houston
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Hans Aarsman
relation country of citizenship
type designation for an administrative territorial entity
['Snježana Kordić', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['William Patrick Stuart-Houston', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Hans Aarsman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { resource:Snježana_Kordić property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:William_Patrick_Stuart-Houston property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q30
P163
Q14660
USER
Which flag is associated with that administrative territory ?
(Q30,P163,c(Q14660))
action filter_type
action find
entity Q30
relation P163
type Q14660
['Q30', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?r WHERE { resource:Q30 property:P163 ?r . ?r rdf:type ontology:Q14660 }
United States of America
action filter_type
action find
entity United States of America
relation flag
type flag
['United States of America', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?r WHERE { resource:United_States_of_America property:flag ?r . ?r rdf:type ontology:flag }
[]
flag
Clarification for simple ques.
Q145
SYSTEM
Did you mean United Kingdom ?
Q30 Q145 Q224
(Q30,P163,c(Q14660)) (Q145,P163,c(Q14660)) (Q224,P163,c(Q14660))
[ANSWER]
['Q30', 'P163', {'concept': 'Q14660'}] ['Q145', 'P163', {'concept': 'Q14660'}] ['Q224', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?r WHERE { resource:Q30 property:P163 ?r . ?r rdf:type ontology:Q14660 }
United States of America United Kingdom Croatia
Did you mean United Kingdom ?
United Kingdom
['United States of America', 'flag', {'concept': 'flag'}] ['United Kingdom', 'flag', {'concept': 'flag'}] ['Croatia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?r WHERE { resource:United_States_of_America property:flag ?r . ?r rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
USER
No, I meant United States of America. Could you tell me the answer for that?
(Q30,P163,c(Q14660))
Q30
['Q30', 'P163', {'concept': 'Q14660'}]
['United States of America', 'flag', {'concept': 'flag'}]
[]
Q42537
SYSTEM
flag of the United States of America
Q42537
(Q30,P163,c(Q14660))
action filter_type
action find
entity Q30
relation P163
type Q14660
The [ANSWER] is associated with that administrative territory
['Q30', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?r WHERE { resource:Q30 property:P163 ?r . ?r rdf:type ontology:Q14660 }
flag of the United States of America
The flag of the United States of America is associated with that administrative territory
flag of the United States of America
action filter_type
action find
entity United States of America
relation flag
type flag
['United States of America', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?r WHERE { resource:United_States_of_America property:flag ?r . ?r rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q42537
P462
Q1075
USER
Which colors are that flag associated with ?
(Q42537,P462,c(Q1075))
action filter_type
action find
entity Q42537
relation P462
type Q1075
['Q42537', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?s WHERE { resource:Q42537 property:P462 ?s . ?s rdf:type ontology:Q1075 }
flag of the United States of America
action filter_type
action find
entity flag of the United States of America
relation color
type color
['flag of the United States of America', 'color', {'concept': 'color'}]
SELECT DISTINCT ?s WHERE { resource:flag_of_the_United_States_of_America property:color ?s . ?s rdf:type ontology:color }
[]
color
Q3142 Q1088
SYSTEM
red, blue
Q3142 Q1088
(Q42537,P462,c(Q1075))
action filter_type
action find
entity Q42537
relation P462
type Q1075
That flag are associated with [ANSWERS]
['Q42537', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?s WHERE { resource:Q42537 property:P462 ?s . ?s rdf:type ontology:Q1075 }
red blue
That flag are associated with red and blue
red blue
action filter_type
action find
entity flag of the United States of America
relation color
type color
['flag of the United States of America', 'color', {'concept': 'color'}]
SELECT DISTINCT ?s WHERE { resource:flag_of_the_United_States_of_America property:color ?s . ?s rdf:type ontology:color }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P180
Q1075 Q15709879
USER
How many artwork series express atmost 1 color ?
(c(Q15709879),P180,c(Q1075))
action count
action atmost
action find_tuple_counts
relation P180
type Q15709879
type Q1075
value 1
[{'concept': 'Q15709879'}, 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?b ) AS ?o ) WHERE { ?p property:P180 ?b . ?p rdf:type ontology:Q15709879 . ?b rdf:type ontology:Q1075 } GROUP BY ?p } . FILTER ( ?o <= 1 ) }
action count
action atmost
action find_tuple_counts
relation depicts
type artwork series
type color
value 1
[{'concept': 'artwork series'}, 'depicts', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?b ) AS ?o ) WHERE { ?p property:depicts ?b . ?p rdf:type ontology:artwork_series . ?b rdf:type ontology:color } GROUP BY ?p } . FILTER ( ?o <= 1 ) }
[]
color artwork series
SYSTEM
95
Q2734209 Q724377 Q5405830 Q1325840 Q17277950 Q18066151 Q153117 Q19973947 Q20798298 Q3698179 Q17023954 Q3565037 Q7114124 Q22814397 Q2600695 Q5474623 Q11729456 Q1787460 Q7729430 Q18087883 Q13433027 Q5885597 Q2720294 Q26974941 Q4931571 Q15994172 Q20968586 Q26265297 Q3948773 Q19689132 Q1989780 Q20792784 Q4014884 Q5384733 Q8051773 Q217796 Q403550 Q18209516 Q3377374 Q669994 Q22814425 Q2982846 Q684689 Q602980 Q21228100 Q26831186 Q7263012 Q20798308 Q838798 Q7973327 Q1577097 Q20798304 Q2923904 Q127736 Q2525862 Q115728 Q1535573 Q19729666 Q351300 Q2267579 Q7158404 Q25252922 Q17003932 Q24204770 Q3205427 Q3713675 Q20991326 Q7991819 Q18219587 Q18822557 Q1239316 Q733458 Q17091582 Q27267029 Q24531 Q5108944 Q59201 Q3094657 Q3094651 Q3492887 Q3428134 Q21032805 Q18009187 Q1750032 Q3399390 Q2963501 Q2273452 Q14940805 Q637414 Q2829428 Q157541 Q6507323 Q1497715 Q18325696 Q21127606
(c(Q15709879),P180,c(Q1075))
action count
action atmost
action find_tuple_counts
relation P180
type Q15709879
type Q1075
value 1
[ANSWER]
[{'concept': 'Q15709879'}, 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?b ) AS ?o ) WHERE { ?p property:P180 ?b . ?p rdf:type ontology:Q15709879 . ?b rdf:type ontology:Q1075 } GROUP BY ?p } . FILTER ( ?o <= 1 ) }
Little Dancer of Fourteen Years Bedroom in Arles Portrait of Lady Meux Electric Chair The Card Players Sonderkommando photographs Old Church Tower at Nuenen View of The Hague from the Delftse Vaart in the 17th Century equestrian statue of Joan of Arc Crucifixion Portrait of Dr. Gachet Fine Wind, Clear Morning Ovid among the Scythians The Seven Virtues The Empire of Lights Founding Fathers of Merseyside Football Jupiter and Antiope Watson and the Shark The Death of General Warren at the Battle of Bunker's Hill, June 17, 1775 P.S. Krøyer's paintings of Marie Bathers Holy Grail tapestries L.H.O.O.Q. Four Captives Boaz and Ruth The Last Judgment The First Twelve Roman Emperors Series in Schloss Caputh (1618-1625) Nike Saint Anthony Abbot and the Archangel Michael Winter Night in the Mountains Madonna equestrian statue of Joan of Arc Life of the Virgin Equivalents Yellow Odalisque Lewis chessmen Sopo Archangels Reclining Figure: Festival Little Passion Isle of the Dead The Seven Vices Head of a Catalan Peasant Beethoven Frieze L'Arlésienne Character heads Mercury Passing Before the Sun Pygmalion and the Image series equestrian statue of Joan of Arc Langlois Bridge at Arles Water Mill at Gennep Salome equestrian statue of Joan of Arc Bras de Seine près de Giverny Great Passion Thirty-six Views of Mount Fuji The Madonna of Port Lligat Aix Annunciation Goslar Warrior Adam and Eve The Sick Child Peasant Character Studies Nemesis Falling Autumn Leaves Homage to the Square L'Équipe de Cardiff Pergamene Gauls Le Carceri d'Invenzione Wheat Fields Passion Thirty-six Views of the Eiffel Tower Vesuvius in Eruption Poplar Series Hermaphrodite Nativity with Mary of Burgundy, Jan Crabbe and Pierre Vaillant, series of 17 paintings of counts of Flanders with abbots of Ter Duinen Cortona Triptych Christ and the Virgin Diptych Napoleon Crossing the Alps Ancient Rome Modern Rome Medusa Crystal Palace Dinosaurs Pendant portraits of Maerten Soolmans and Oopjen Coppit Robert Burns The Four Elements (Air) Portraits of Henry IV of Saxony and Catherine of Mecklenburg Dogs Playing Poker The Judgment of Paris The Apostles of Albi Rouen Cathedral Al Alimón Sunflowers Le Moulin de la Galette Nanxun Tu Contact Ad Plum Park in Kameido
95
action count
action atmost
action find_tuple_counts
relation depicts
type artwork series
type color
value 1
[{'concept': 'artwork series'}, 'depicts', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?b ) AS ?o ) WHERE { ?p property:depicts ?b . ?p rdf:type ontology:artwork_series . ?b rdf:type ontology:color } GROUP BY ?p } . FILTER ( ?o <= 1 ) }
[]