Simple Question (Direct)
Simple Question
Q329038
P1344
Q16510064
USER
What sporting events did Hermann Schridde participate in ?
(Q329038,P1344,c(Q16510064))
action filter_type
action find
entity Q329038
relation P1344
type Q16510064
['Q329038', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q16510064 . resource:Q329038 property:P1344 ?v }
Hermann Schridde
action filter_type
action find
entity Hermann Schridde
relation participant of
type sporting event
['Hermann Schridde', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sporting_event . resource:Hermann_Schridde property:participant_of ?v }
[]
sporting event
Q5384336 Q5384339
SYSTEM
Equestrian at the 1964 Summer Olympics – Individual jumping, Equestrian at the 1964 Summer Olympics – Team jumping
Q5384336 Q5384339
(Q329038,P1344,c(Q16510064))
action filter_type
action find
entity Q329038
relation P1344
type Q16510064
Hermann Schridde participated in [ANSWERS]
['Q329038', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q16510064 . resource:Q329038 property:P1344 ?v }
Equestrian at the 1964 Summer Olympics – Individual jumping Equestrian at the 1964 Summer Olympics – Team jumping
Hermann Schridde participated in Equestrian at the 1964 Summer Olympics – Individual jumping and Equestrian at the 1964 Summer Olympics – Team jumping
Equestrian at the 1964 Summer Olympics – Individual jumping Equestrian at the 1964 Summer Olympics – Team jumping
action filter_type
action find
entity Hermann Schridde
relation participant of
type sporting event
['Hermann Schridde', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sporting_event . resource:Hermann_Schridde property:participant_of ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q329038
P27
Q1048835
USER
Which political territory is the country of citizenship of Hermann Schridde ?
(Q329038,P27,c(Q1048835))
action filter_type
action find
entity Q329038
relation P27
type Q1048835
['Q329038', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q329038 property:P27 ?o . ?o rdf:type ontology:Q1048835 }
Hermann Schridde
action filter_type
action find
entity Hermann Schridde
relation country of citizenship
type political territorial entity
['Hermann Schridde', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Hermann_Schridde property:country_of_citizenship ?o . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q329038,P27,c(Q1048835))
action filter_type
action find
entity Q329038
relation P27
type Q1048835
[ANSWER] is the country of citizenship of Hermann Schridde
['Q329038', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q329038 property:P27 ?o . ?o rdf:type ontology:Q1048835 }
Germany
Germany is the country of citizenship of Hermann Schridde
Germany
action filter_type
action find
entity Hermann Schridde
relation country of citizenship
type political territorial entity
['Hermann Schridde', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Hermann_Schridde property:country_of_citizenship ?o . ?o rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P921
Q571
USER
Which book was mainly based on that political territory ?
(c(Q571),P921,Q183)
action filter_type
action find_reverse
entity Q183
relation P921
type Q571
[{'concept': 'Q571'}, 'P921', 'Q183']
SELECT DISTINCT ?h WHERE { ?h property:P921 resource:Q183 . ?h rdf:type ontology:Q571 }
Germany
action filter_type
action find_reverse
entity Germany
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'Germany']
SELECT DISTINCT ?h WHERE { ?h property:main_subject resource:Germany . ?h rdf:type ontology:book }
[]
book
Q15291012
SYSTEM
Writers and Radio
Q15291012
(c(Q571),P921,Q183)
action filter_type
action find_reverse
entity Q183
relation P921
type Q571
[ANSWER] was mainly based on that political territory
[{'concept': 'Q571'}, 'P921', 'Q183']
SELECT DISTINCT ?h WHERE { ?h property:P921 resource:Q183 . ?h rdf:type ontology:Q571 }
Writers and Radio
Writers and Radio was mainly based on that political territory
Writers and Radio
action filter_type
action find_reverse
entity Germany
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'Germany']
SELECT DISTINCT ?h WHERE { ?h property:main_subject resource:Germany . ?h rdf:type ontology:book }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P463
Q93288
USER
Which contracts were Germany a member of ?
(Q183,P463,c(Q93288))
action filter_type
action find
entity Q183
relation P463
type Q93288
['Q183', 'P463', {'concept': 'Q93288'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q93288 . resource:Q183 property:P463 ?j }
Germany
action filter_type
action find
entity Germany
relation member of
type contract
['Germany', 'member of', {'concept': 'contract'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:contract . resource:Germany property:member_of ?j }
[]
contract
Q194284 Q1067802
SYSTEM
General Agreement on Tariffs and Trade, Paris Charter
Q194284 Q1067802
(Q183,P463,c(Q93288))
action filter_type
action find
entity Q183
relation P463
type Q93288
Germany were the [ANSWERS]
['Q183', 'P463', {'concept': 'Q93288'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q93288 . resource:Q183 property:P463 ?j }
General Agreement on Tariffs and Trade Paris Charter
Germany were the General Agreement on Tariffs and Trade and Paris Charter
General Agreement on Tariffs and Trade Paris Charter
action filter_type
action find
entity Germany
relation member of
type contract
['Germany', 'member of', {'concept': 'contract'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:contract . resource:Germany property:member_of ?j }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q183
Q180684
USER
And which conflict?
(Q183,P463,c(Q180684))
action filter_type
action find
entity Q183
relation P463
type Q180684
['Q183', 'P463', {'concept': 'Q180684'}]
SELECT DISTINCT ?y WHERE { resource:Q183 property:P463 ?y . ?y rdf:type ontology:Q180684 }
Germany
action filter_type
action find
entity Germany
relation member of
type conflict
['Germany', 'member of', {'concept': 'conflict'}]
SELECT DISTINCT ?y WHERE { resource:Germany property:member_of ?y . ?y rdf:type ontology:conflict }
[]
conflict
Q384535
SYSTEM
African Union – United Nations Hybrid Operation in Darfur
Q384535
(Q183,P463,c(Q180684))
action filter_type
action find
entity Q183
relation P463
type Q180684
[ANSWER]
['Q183', 'P463', {'concept': 'Q180684'}]
SELECT DISTINCT ?y WHERE { resource:Q183 property:P463 ?y . ?y rdf:type ontology:Q180684 }
African Union – United Nations Hybrid Operation in Darfur
African Union – United Nations Hybrid Operation in Darfur
action filter_type
action find
entity Germany
relation member of
type conflict
['Germany', 'member of', {'concept': 'conflict'}]
SELECT DISTINCT ?y WHERE { resource:Germany property:member_of ?y . ?y rdf:type ontology:conflict }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q227 Q183
P27
Q502895
USER
Which people are a citizen of Germany and Azerbaijan ?
AND((c(Q502895),P27,Q183), (c(Q502895),P27,Q227))
action filter_type
action intersection
action find_reverse
entity Q183
relation P27
action find_reverse
entity Q227
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q183'], [{'concept': 'Q502895'}, 'P27', 'Q227']]}
SELECT DISTINCT ?n WHERE { ?n property:P27 resource:Q227 . ?n property:P27 resource:Q183 . ?n rdf:type ontology:Q502895 }
Azerbaijan Germany
action filter_type
action intersection
action find_reverse
entity Germany
relation country of citizenship
action find_reverse
entity Azerbaijan
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Germany'], [{'concept': 'common name'}, 'country of citizenship', 'Azerbaijan']]}
SELECT DISTINCT ?n WHERE { ?n property:country_of_citizenship resource:Azerbaijan . ?n property:country_of_citizenship resource:Germany . ?n rdf:type ontology:common_name }
[]
common name
Q24325 Q15363466 Q479646 Q44580 Q2619059 Q1640900
SYSTEM
Ufuk Budak, Tuğrul Erat, Cihan Özkara, Richard Sorge, Ali Gökdemir, Pardis Fardjad-Azad
Q24325 Q15363466 Q479646 Q44580 Q2619059 Q1640900
AND((c(Q502895),P27,Q183), (c(Q502895),P27,Q227))
action filter_type
action intersection
action find_reverse
entity Q183
relation P27
action find_reverse
entity Q227
relation P27
type Q502895
[ANSWERS] are a citizen of Germany and Azerbaijan
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q183'], [{'concept': 'Q502895'}, 'P27', 'Q227']]}
SELECT DISTINCT ?n WHERE { ?n property:P27 resource:Q227 . ?n property:P27 resource:Q183 . ?n rdf:type ontology:Q502895 }
Ufuk Budak Tuğrul Erat Cihan Özkara Richard Sorge Ali Gökdemir Pardis Fardjad-Azad
Ufuk Budak, Tuğrul Erat, Cihan Özkara, Richard Sorge, Ali Gökdemir and Pardis Fardjad-Azad are a citizen of Germany and Azerbaijan
Ufuk Budak Tuğrul Erat Cihan Özkara Richard Sorge Ali Gökdemir Pardis Fardjad-Azad
action filter_type
action intersection
action find_reverse
entity Germany
relation country of citizenship
action find_reverse
entity Azerbaijan
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Germany'], [{'concept': 'common name'}, 'country of citizenship', 'Azerbaijan']]}
SELECT DISTINCT ?n WHERE { ?n property:country_of_citizenship resource:Azerbaijan . ?n property:country_of_citizenship resource:Germany . ?n rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q484101 Q183
P6
Q502895
USER
Which people have Germany or Jølster as their heads of government ?
OR((Q183,P6,c(Q502895)), (Q484101,P6,c(Q502895)))
action filter_type
action union
action find
entity Q183
relation P6
action find
entity Q484101
relation P6
type Q502895
{'OR': [['Q183', 'P6', {'concept': 'Q502895'}], ['Q484101', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?l ) { ( resource:Q183 ) ( resource:Q484101 ) } . ?l property:P6 ?v } . ?v rdf:type ontology:Q502895 }
Jølster Germany
action filter_type
action union
action find
entity Germany
relation head of government
action find
entity Jølster
relation head of government
type common name
{'OR': [['Germany', 'head of government', {'concept': 'common name'}], ['Jølster', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?l ) { ( resource:Germany ) ( resource:Jølster ) } . ?l property:head_of_government ?v } . ?v rdf:type ontology:common_name }
[]
common name
Q2492 Q2518 Q2530 Q2496 Q2514 Q2516 Q2571 Q2512 Q17099840 Q567
SYSTEM
Konrad Adenauer, Helmut Kohl, Gerhard Schröder, Ludwig Erhard, Willy Brandt, Helmut Schmidt, Walter Scheel, Kurt Georg Kiesinger, Oddmund Klakegg, Angela Merkel
Q2492 Q2518 Q2530 Q2496 Q2514 Q2516 Q2571 Q2512 Q17099840 Q567
OR((Q183,P6,c(Q502895)), (Q484101,P6,c(Q502895)))
action filter_type
action union
action find
entity Q183
relation P6
action find
entity Q484101
relation P6
type Q502895
[ANSWERS] have Germany or Jølster as their heads of government
{'OR': [['Q183', 'P6', {'concept': 'Q502895'}], ['Q484101', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?l ) { ( resource:Q183 ) ( resource:Q484101 ) } . ?l property:P6 ?v } . ?v rdf:type ontology:Q502895 }
Konrad Adenauer Helmut Kohl Gerhard Schröder Ludwig Erhard Willy Brandt Helmut Schmidt Walter Scheel Kurt Georg Kiesinger Oddmund Klakegg Angela Merkel
Konrad Adenauer, Helmut Kohl, Gerhard Schröder, Ludwig Erhard, Willy Brandt, Helmut Schmidt, Walter Scheel, Kurt Georg Kiesinger, Oddmund Klakegg and Angela Merkel have Germany or Jølster as their heads of government
Konrad Adenauer Helmut Kohl Gerhard Schröder Ludwig Erhard Willy Brandt Helmut Schmidt Walter Scheel Kurt Georg Kiesinger Oddmund Klakegg Angela Merkel
action filter_type
action union
action find
entity Germany
relation head of government
action find
entity Jølster
relation head of government
type common name
{'OR': [['Germany', 'head of government', {'concept': 'common name'}], ['Jølster', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?l ) { ( resource:Germany ) ( resource:Jølster ) } . ?l property:head_of_government ?v } . ?v rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q604538
P1303
Q34379 Q502895
USER
Which musical instruments can approximately the same number of people perform with as Temple block ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q604538
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:P1303 ?z . ?z rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e rdf:type ontology:Q34379 . resource:Q604538 property:P1303 ?e } } . FILTER ( ?q = ?w ) }
Temple block
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Temple block
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:instrument ?z . ?z rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e rdf:type ontology:musical_instrument . resource:Temple_block property:instrument ?e } } . FILTER ( ?q = ?w ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q604538
relation P1303
type Q34379
[ANSWERS] can approximately the same number of people perform with as Temple block
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:P1303 ?z . ?z rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e rdf:type ontology:Q34379 . resource:Q604538 property:P1303 ?e } } . FILTER ( ?q = ?w ) }
viola 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 Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn 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 can approximately the same number of people perform with as Temple block
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Temple block
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:instrument ?z . ?z rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e rdf:type ontology:musical_instrument . resource:Temple_block property:instrument ?e } } . FILTER ( ?q = ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q46185
P1303
Q34379 Q502895
USER
And what about bass guitar?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q46185
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?g ) WHERE { ?e property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { resource:Q46185 property:P1303 ?v . ?v rdf:type ontology:Q34379 } } . FILTER ( ?g = ?x ) }
bass guitar
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity bass guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?g ) WHERE { ?e property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { resource:bass_guitar property:instrument ?v . ?v rdf:type ontology:musical_instrument } } . FILTER ( ?g = ?x ) }
[]
musical instrument common name
Q81982 Q80284 Q46185
SYSTEM
harpsichord, viola, bass guitar
Q80284 Q46185 Q80019 Q81982 Q206987 Q8338 Q8371 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q46185
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?g ) WHERE { ?e property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { resource:Q46185 property:P1303 ?v . ?v rdf:type ontology:Q34379 } } . FILTER ( ?g = ?x ) }
viola bass guitar double bass harpsichord vibraphone trumpet cello organ drum kit electronic keyboard
harpsichord viola bass guitar
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity bass guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?g ) WHERE { ?e property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { resource:bass_guitar property:instrument ?v . ?v rdf:type ontology:musical_instrument } } . FILTER ( ?g = ?x ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q45909
P1303
Q502895
USER
Does John Cale play those musical instruments ?
(Q45909,P1303,Q81982) (Q45909,P1303,Q80284) (Q45909,P1303,Q46185)
action is_in
entity prev_answer
action find
entity Q45909
relation P1303
['Q45909', 'P1303', 'Q81982'] ['Q45909', 'P1303', 'Q80284'] ['Q45909', 'P1303', 'Q46185']
ASK WHERE { resource:Q45909 property:P1303 ?l . VALUES ( ?l ) { ( resource:Q80284 ) ( resource:Q46185 ) ( resource:Q80019 ) } }
John Cale
action is_in
entity prev_answer
action find
entity John Cale
relation instrument
['John Cale', 'instrument', 'harpsichord'] ['John Cale', 'instrument', 'viola'] ['John Cale', 'instrument', 'bass guitar']
ASK WHERE { resource:John_Cale property:instrument ?l . VALUES ( ?l ) { ( resource:viola ) ( resource:bass_guitar ) ( resource:double_bass ) } }
[]
common name
SYSTEM
YES
(Q45909,P1303,Q81982) (Q45909,P1303,Q80284) (Q45909,P1303,Q46185)
action is_in
entity prev_answer
action find
entity Q45909
relation P1303
[ANSWER]
['Q45909', 'P1303', 'Q81982'] ['Q45909', 'P1303', 'Q80284'] ['Q45909', 'P1303', 'Q46185']
ASK WHERE { resource:Q45909 property:P1303 ?l . VALUES ( ?l ) { ( resource:Q80284 ) ( resource:Q46185 ) ( resource:Q80019 ) } }
Yes
action is_in
entity prev_answer
action find
entity John Cale
relation instrument
['John Cale', 'instrument', 'harpsichord'] ['John Cale', 'instrument', 'viola'] ['John Cale', 'instrument', 'bass guitar']
ASK WHERE { resource:John_Cale property:instrument ?l . VALUES ( ?l ) { ( resource:viola ) ( resource:bass_guitar ) ( resource:double_bass ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q567
P26
Q502895
USER
How many people are the spouses of Angela Merkel ?
(Q567,P26,c(Q502895))
action count
action filter_type
action find
entity Q567
relation P26
type Q502895
['Q567', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l rdf:type ontology:Q502895 . resource:Q567 property:P26 ?l }
Angela Merkel
action count
action filter_type
action find
entity Angela Merkel
relation spouse
type common name
['Angela Merkel', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l rdf:type ontology:common_name . resource:Angela_Merkel property:spouse ?l }
[]
common name
SYSTEM
2
Q13415350 Q62085
(Q567,P26,c(Q502895))
action count
action filter_type
action find
entity Q567
relation P26
type Q502895
[ANSWER]
['Q567', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l rdf:type ontology:Q502895 . resource:Q567 property:P26 ?l }
Ulrich Merkel Joachim Sauer
2
action count
action filter_type
action find
entity Angela Merkel
relation spouse
type common name
['Angela Merkel', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l rdf:type ontology:common_name . resource:Angela_Merkel property:spouse ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q567
P40
Q502895
USER
Who have Angela Merkel as a child ?
(c(Q502895),P40,Q567)
action filter_type
action find_reverse
entity Q567
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q567']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P40 resource:Q567 }
Angela Merkel
action filter_type
action find_reverse
entity Angela Merkel
relation child
type common name
[{'concept': 'common name'}, 'child', 'Angela Merkel']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:child resource:Angela_Merkel }
[]
common name
Q70045 Q14646844
SYSTEM
Horst Kasner, Herlind Kasner
Q70045 Q14646844
(c(Q502895),P40,Q567)
action filter_type
action find_reverse
entity Q567
relation P40
type Q502895
[ANSWERS] have Angela Merkel as a child
[{'concept': 'Q502895'}, 'P40', 'Q567']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P40 resource:Q567 }
Horst Kasner Herlind Kasner
Horst Kasner and Herlind Kasner have Angela Merkel as a child
Horst Kasner Herlind Kasner
action filter_type
action find_reverse
entity Angela Merkel
relation child
type common name
[{'concept': 'common name'}, 'child', 'Angela Merkel']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:child resource:Angela_Merkel }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q70045 Q14646844
P21
Q290
USER
What are the sex of Horst Kasner and Herlind Kasner ?
(Q70045,P21,c(Q290)) (Q14646844,P21,c(Q290))
action union
action filter_type
action find
entity Q70045
relation P21
type Q290
action filter_type
action find
entity Q14646844
relation P21
type Q290
['Q70045', 'P21', {'concept': 'Q290'}] ['Q14646844', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { { resource:Q70045 property:P21 ?n . ?n rdf:type ontology:Q290 } UNION { ?n rdf:type ontology:Q290 . resource:Q14646844 property:P21 ?n } }
Horst Kasner Herlind Kasner
action union
action filter_type
action find
entity Horst Kasner
relation gender
type sex
action filter_type
action find
entity Herlind Kasner
relation gender
type sex
['Horst Kasner', 'gender', {'concept': 'sex'}] ['Herlind Kasner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { { resource:Horst_Kasner property:gender ?n . ?n rdf:type ontology:sex } UNION { ?n rdf:type ontology:sex . resource:Herlind_Kasner property:gender ?n } }
[]
sex
Q6581097 Q6581072
SYSTEM
male, female
Q6581097 Q6581072
(Q70045,P21,c(Q290)) (Q14646844,P21,c(Q290))
action union
action filter_type
action find
entity Q70045
relation P21
type Q290
action filter_type
action find
entity Q14646844
relation P21
type Q290
The sex of Horst Kasner and Herlind Kasner are both [ANSWERS]
['Q70045', 'P21', {'concept': 'Q290'}] ['Q14646844', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { { resource:Q70045 property:P21 ?n . ?n rdf:type ontology:Q290 } UNION { ?n rdf:type ontology:Q290 . resource:Q14646844 property:P21 ?n } }
male female
The sex of Horst Kasner and Herlind Kasner are both male and female
male female
action union
action filter_type
action find
entity Horst Kasner
relation gender
type sex
action filter_type
action find
entity Herlind Kasner
relation gender
type sex
['Horst Kasner', 'gender', {'concept': 'sex'}] ['Herlind Kasner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { { resource:Horst_Kasner property:gender ?n . ?n rdf:type ontology:sex } UNION { ?n rdf:type ontology:sex . resource:Herlind_Kasner property:gender ?n } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6581097
P136
Q502895
USER
Which people have that sex as genre ?
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?e WHERE { ?e property:P136 resource:Q6581097 . ?e rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?e WHERE { ?e property:genre resource:male . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q6581072
SYSTEM
Did you mean female ?
Q6581097 Q6581072
(c(Q502895),P136,Q6581097) (c(Q502895),P136,Q6581072)
[ANSWER]
[{'concept': 'Q502895'}, 'P136', 'Q6581097'] [{'concept': 'Q502895'}, 'P136', 'Q6581072']
SELECT DISTINCT ?e WHERE { ?e property:P136 resource:Q6581097 . ?e rdf:type ontology:Q502895 }
male female
Did you mean female ?
female
[{'concept': 'common name'}, 'genre', 'male'] [{'concept': 'common name'}, 'genre', 'female']
SELECT DISTINCT ?e WHERE { ?e property:genre resource:male . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant male. Could you tell me the answer for that?
(c(Q502895),P136,Q6581097)
Q6581097
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
[{'concept': 'common name'}, 'genre', 'male']
[]
Q23766532 Q313288 Q18221191
SYSTEM
Pierre Laviron, Augustus Pugin, Alessandro Gregorio Capponi
Q19796723 Q23766532 Q313288 Q18221191
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[ANSWERS] have that sex as genre
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?e WHERE { ?e property:P136 resource:Q6581097 . ?e rdf:type ontology:Q502895 }
Francesc Xavier Avilés i Puigvert Pierre Laviron Augustus Pugin Alessandro Gregorio Capponi
Pierre Laviron, Augustus Pugin and Alessandro Gregorio Capponi have that sex as genre
Pierre Laviron Augustus Pugin Alessandro Gregorio Capponi
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?e WHERE { ?e property:genre resource:male . ?e rdf:type ontology:common_name }
[]