Simple Question (Direct)
Simple Question
Q5506676
P40
Q502895
USER
Who is a child of Frédéric Boulanger ?
(Q5506676,P40,c(Q502895))
action filter_type
action find
entity Q5506676
relation P40
type Q502895
['Q5506676', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q5506676 property:P40 ?h . ?h rdf:type ontology:Q502895 }
Frédéric Boulanger
action filter_type
action find
entity Frédéric Boulanger
relation child
type common name
['Frédéric Boulanger', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Frédéric_Boulanger property:child ?h . ?h rdf:type ontology:common_name }
[]
common name
Q742477
SYSTEM
Ernest Boulanger
Q742477
(Q5506676,P40,c(Q502895))
action filter_type
action find
entity Q5506676
relation P40
type Q502895
A child of Frédéric Boulanger is named [ANSWER]
['Q5506676', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q5506676 property:P40 ?h . ?h rdf:type ontology:Q502895 }
Ernest Boulanger
A child of Frédéric Boulanger is named Ernest Boulanger
Ernest Boulanger
action filter_type
action find
entity Frédéric Boulanger
relation child
type common name
['Frédéric Boulanger', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Frédéric_Boulanger property:child ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q742477
P25
Q502895
USER
Which person was the mother of that one ?
(Q742477,P25,c(Q502895))
action filter_type
action find
entity Q742477
relation P25
type Q502895
['Q742477', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q742477 property:P25 ?j . ?j rdf:type ontology:Q502895 }
Ernest Boulanger
action filter_type
action find
entity Ernest Boulanger
relation mother
type common name
['Ernest Boulanger', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Ernest_Boulanger property:mother ?j . ?j rdf:type ontology:common_name }
[]
common name
Q6762682
SYSTEM
Marie-Julie Halligner
Q6762682
(Q742477,P25,c(Q502895))
action filter_type
action find
entity Q742477
relation P25
type Q502895
[ANSWER] was the mother of that one
['Q742477', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q742477 property:P25 ?j . ?j rdf:type ontology:Q502895 }
Marie-Julie Halligner
Marie-Julie Halligner was the mother of that one
Marie-Julie Halligner
action filter_type
action find
entity Ernest Boulanger
relation mother
type common name
['Ernest Boulanger', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Ernest_Boulanger property:mother ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q742477
P22
Q502895
USER
Who are the offspring of Ernest Boulanger ?
(c(Q502895),P22,Q742477)
action filter_type
action find_reverse
entity Q742477
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q742477']
SELECT DISTINCT ?a WHERE { ?a property:P22 resource:Q742477 . ?a rdf:type ontology:Q502895 }
Ernest Boulanger
action filter_type
action find_reverse
entity Ernest Boulanger
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ernest Boulanger']
SELECT DISTINCT ?a WHERE { ?a property:father resource:Ernest_Boulanger . ?a rdf:type ontology:common_name }
[]
common name
Q140619 Q230412
SYSTEM
Nadia Boulanger, Lili Boulanger
Q140619 Q230412
(c(Q502895),P22,Q742477)
action filter_type
action find_reverse
entity Q742477
relation P22
type Q502895
The offspring of Ernest Boulanger are [ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q742477']
SELECT DISTINCT ?a WHERE { ?a property:P22 resource:Q742477 . ?a rdf:type ontology:Q502895 }
Nadia Boulanger Lili Boulanger
The offspring of Ernest Boulanger are Nadia Boulanger and Lili Boulanger
Nadia Boulanger Lili Boulanger
action filter_type
action find_reverse
entity Ernest Boulanger
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ernest Boulanger']
SELECT DISTINCT ?a WHERE { ?a property:father resource:Ernest_Boulanger . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q140619 Q230412
P9
Q502895
USER
Which people have Nadia Boulanger and Lili Boulanger as their sibling ?
(c(Q502895),P9,Q140619) (c(Q502895),P9,Q230412)
action union
action filter_type
action find
entity Q140619
relation P9
type Q502895
action filter_type
action find
entity Q230412
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q140619'] [{'concept': 'Q502895'}, 'P9', 'Q230412']
SELECT DISTINCT ?x WHERE { { resource:Q140619 property:P9 ?x . ?x rdf:type ontology:Q502895 } UNION { ?x rdf:type ontology:Q502895 . resource:Q230412 property:P9 ?x } }
Nadia Boulanger Lili Boulanger
action union
action filter_type
action find
entity Nadia Boulanger
relation sister
type common name
action filter_type
action find
entity Lili Boulanger
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Nadia Boulanger'] [{'concept': 'common name'}, 'sister', 'Lili Boulanger']
SELECT DISTINCT ?x WHERE { { resource:Nadia_Boulanger property:sister ?x . ?x rdf:type ontology:common_name } UNION { ?x rdf:type ontology:common_name . resource:Lili_Boulanger property:sister ?x } }
[]
common name
Q230412 Q140619
SYSTEM
Lili Boulanger, Nadia Boulanger
Q230412 Q140619
(c(Q502895),P9,Q140619) (c(Q502895),P9,Q230412)
action union
action filter_type
action find
entity Q140619
relation P9
type Q502895
action filter_type
action find
entity Q230412
relation P9
type Q502895
[ANSWERS] have Nadia Boulanger and Lili Boulanger as their sibling
[{'concept': 'Q502895'}, 'P9', 'Q140619'] [{'concept': 'Q502895'}, 'P9', 'Q230412']
SELECT DISTINCT ?x WHERE { { resource:Q140619 property:P9 ?x . ?x rdf:type ontology:Q502895 } UNION { ?x rdf:type ontology:Q502895 . resource:Q230412 property:P9 ?x } }
Lili Boulanger Nadia Boulanger
Lili Boulanger and Nadia Boulanger have Nadia Boulanger and Lili Boulanger as their sibling
Lili Boulanger Nadia Boulanger
action union
action filter_type
action find
entity Nadia Boulanger
relation sister
type common name
action filter_type
action find
entity Lili Boulanger
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Nadia Boulanger'] [{'concept': 'common name'}, 'sister', 'Lili Boulanger']
SELECT DISTINCT ?x WHERE { { resource:Nadia_Boulanger property:sister ?x . ?x rdf:type ontology:common_name } UNION { ?x rdf:type ontology:common_name . resource:Lili_Boulanger property:sister ?x } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q140619
P463
Q811430
USER
Which organization was that person a member of ?
(Q140619,P463,c(Q811430))
action filter_type
action find
entity Q140619
relation P463
type Q811430
['Q140619', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q811430 . resource:Q140619 property:P463 ?t }
Nadia Boulanger
action filter_type
action find
entity Nadia Boulanger
relation member of
type construction
['Nadia Boulanger', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:construction . resource:Nadia_Boulanger property:member_of ?t }
[]
construction
Clarification for simple ques.
Q230412
SYSTEM
Did you mean Lili Boulanger ?
Q230412 Q140619
(Q230412,P463,c(Q811430)) (Q140619,P463,c(Q811430))
[ANSWER]
['Q230412', 'P463', {'concept': 'Q811430'}] ['Q140619', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q811430 . resource:Q140619 property:P463 ?t }
Lili Boulanger Nadia Boulanger
Did you mean Lili Boulanger ?
Lili Boulanger
['Lili Boulanger', 'member of', {'concept': 'construction'}] ['Nadia Boulanger', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:construction . resource:Nadia_Boulanger property:member_of ?t }
[]
Simple Question (Coreferenced)
USER
No, I meant Nadia Boulanger. Could you tell me the answer for that?
(Q140619,P463,c(Q811430))
Q140619
['Q140619', 'P463', {'concept': 'Q811430'}]
['Nadia Boulanger', 'member of', {'concept': 'construction'}]
[]
Q463303
SYSTEM
American Academy of Arts and Sciences
Q463303
(Q140619,P463,c(Q811430))
action filter_type
action find
entity Q140619
relation P463
type Q811430
[ANSWER] was that person a member of
['Q140619', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q811430 . resource:Q140619 property:P463 ?t }
American Academy of Arts and Sciences
American Academy of Arts and Sciences was that person a member of
American Academy of Arts and Sciences
action filter_type
action find
entity Nadia Boulanger
relation member of
type construction
['Nadia Boulanger', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:construction . resource:Nadia_Boulanger property:member_of ?t }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q456845
P841
Q186081 Q573 Q502895
USER
Which people have less number of time intervals and days as their principal feast day than Alix Le Clerc ?
(c(Q502895),P841,c(Q186081)|c(Q573))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q456845
relation P841
type Q186081
type Q573
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) ?f WHERE { { ?j rdf:type ontology:Q573 . ?f rdf:type ontology:Q502895 . ?f property:P841 ?j } UNION { ?f property:P841 ?j . ?f rdf:type ontology:Q502895 . ?j rdf:type ontology:Q186081 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { resource:Q456845 property:P841 ?w . { ?w rdf:type ?i . VALUES ( ?i ) { ( ontology:Q186081 ) ( ontology:Q573 ) } } } } . FILTER ( ?n < ?u ) }
Alix Le Clerc
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity Alix Le Clerc
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) ?f WHERE { { ?j rdf:type ontology:day . ?f rdf:type ontology:common_name . ?f property:feast_day ?j } UNION { ?f property:feast_day ?j . ?f rdf:type ontology:common_name . ?j rdf:type ontology:time_interval } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { resource:Alix_Le_Clerc property:feast_day ?w . { ?w rdf:type ?i . VALUES ( ?i ) { ( ontology:time_interval ) ( ontology:day ) } } } } . FILTER ( ?n < ?u ) }
[]
time interval day common name
Q679784 Q3047912 Q167477
SYSTEM
Pier Giorgio Frassati, Seraphina Sforza, Anthony of Padua
Q384117 Q365797 Q3483257 Q679784 Q3483161 Q3483259 Q3483263 Q167477 Q3047912 Q269889 Q2701365
(c(Q502895),P841,c(Q186081)|c(Q573))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q456845
relation P841
type Q186081
type Q573
[ANSWERS] have less number of time intervals and days as their principal feast day than Alix Le Clerc
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) ?f WHERE { { ?j rdf:type ontology:Q573 . ?f rdf:type ontology:Q502895 . ?f property:P841 ?j } UNION { ?f property:P841 ?j . ?f rdf:type ontology:Q502895 . ?j rdf:type ontology:Q186081 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { resource:Q456845 property:P841 ?w . { ?w rdf:type ?i . VALUES ( ?i ) { ( ontology:Q186081 ) ( ontology:Q573 ) } } } } . FILTER ( ?n < ?u ) }
Aignan of Orleans Ahmad al-Tijani Sidi M'hamed Bou Qobrine Pier Giorgio Frassati Sidi Abder Rahman El Thaelebi Sidi M'hand Oumalek Sidi Mansour Anthony of Padua Seraphina Sforza Joanna, wife of Chuza Thomas Percy, 7th Earl of Northumberland
Pier Giorgio Frassati, Seraphina Sforza and Anthony of Padua have less number of time intervals and days as their principal feast day than Alix Le Clerc
Pier Giorgio Frassati Seraphina Sforza Anthony of Padua
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity Alix Le Clerc
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) ?f WHERE { { ?j rdf:type ontology:day . ?f rdf:type ontology:common_name . ?f property:feast_day ?j } UNION { ?f property:feast_day ?j . ?f rdf:type ontology:common_name . ?j rdf:type ontology:time_interval } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { resource:Alix_Le_Clerc property:feast_day ?w . { ?w rdf:type ?i . VALUES ( ?i ) { ( ontology:time_interval ) ( ontology:day ) } } } } . FILTER ( ?n < ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q70504
P841
Q186081 Q573 Q502895
USER
And how about Maria Crescentia Höss?
(c(Q502895),P841,c(Q186081)|c(Q573))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q70504
relation P841
type Q186081
type Q573
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?m WHERE { ?f rdf:type ?b . VALUES ( ?b ) { ( ontology:Q186081 ) ( ontology:Q573 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Q70504 property:P841 ?s . { { ?s rdf:type ontology:Q186081 } UNION { ?s rdf:type ontology:Q573 } } } } . FILTER ( ?d < ?c ) }
Maria Crescentia Höss
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity Maria Crescentia Höss
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?m WHERE { ?f rdf:type ?b . VALUES ( ?b ) { ( ontology:time_interval ) ( ontology:day ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Maria_Crescentia_Höss property:feast_day ?s . { { ?s rdf:type ontology:time_interval } UNION { ?s rdf:type ontology:day } } } } . FILTER ( ?d < ?c ) }
[]
time interval day common name
Q679784 Q3047912 Q167477
SYSTEM
Pier Giorgio Frassati, Seraphina Sforza, Anthony of Padua
Q384117 Q365797 Q3483257 Q679784 Q3483161 Q3483259 Q3483263 Q167477 Q3047912 Q269889 Q2701365
(c(Q502895),P841,c(Q186081)|c(Q573))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q70504
relation P841
type Q186081
type Q573
[ANSWERS]
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?m WHERE { ?f rdf:type ?b . VALUES ( ?b ) { ( ontology:Q186081 ) ( ontology:Q573 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Q70504 property:P841 ?s . { { ?s rdf:type ontology:Q186081 } UNION { ?s rdf:type ontology:Q573 } } } } . FILTER ( ?d < ?c ) }
Aignan of Orleans Ahmad al-Tijani Sidi M'hamed Bou Qobrine Pier Giorgio Frassati Sidi Abder Rahman El Thaelebi Sidi M'hand Oumalek Sidi Mansour Anthony of Padua Seraphina Sforza Joanna, wife of Chuza Thomas Percy, 7th Earl of Northumberland
Pier Giorgio Frassati Seraphina Sforza Anthony of Padua
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity Maria Crescentia Höss
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?m WHERE { ?f rdf:type ?b . VALUES ( ?b ) { ( ontology:time_interval ) ( ontology:day ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Maria_Crescentia_Höss property:feast_day ?s . { { ?s rdf:type ontology:time_interval } UNION { ?s rdf:type ontology:day } } } } . FILTER ( ?d < ?c ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can around 1231 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1231
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?y = 1231 ) . { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?q } }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1231
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?y = 1231 ) . { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?q } }
[]
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 approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1231
[ANSWERS] can around 1231 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?y = 1231 ) . { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?q } }
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 can around 1231 people perform with
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1231
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?y = 1231 ) . { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?q } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q679784
P1050
Q2057971
USER
Which health problem does Pier Giorgio Frassati suffer from ?
(Q679784,P1050,c(Q2057971))
action filter_type
action find
entity Q679784
relation P1050
type Q2057971
['Q679784', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q2057971 . resource:Q679784 property:P1050 ?x }
Pier Giorgio Frassati
action filter_type
action find
entity Pier Giorgio Frassati
relation medical condition
type health problem
['Pier Giorgio Frassati', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:health_problem . resource:Pier_Giorgio_Frassati property:medical_condition ?x }
[]
health problem
Q12195
SYSTEM
poliomyelitis
Q12195
(Q679784,P1050,c(Q2057971))
action filter_type
action find
entity Q679784
relation P1050
type Q2057971
Pier Giorgio Frassati suffers from [ANSWER]
['Q679784', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q2057971 . resource:Q679784 property:P1050 ?x }
poliomyelitis
Pier Giorgio Frassati suffers from poliomyelitis
poliomyelitis
action filter_type
action find
entity Pier Giorgio Frassati
relation medical condition
type health problem
['Pier Giorgio Frassati', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:health_problem . resource:Pier_Giorgio_Frassati property:medical_condition ?x }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16333896
Q2057971
USER
And what about Tony Porcel?
(Q16333896,P1050,c(Q2057971))
action filter_type
action find
entity Q16333896
relation P1050
type Q2057971
['Q16333896', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?l WHERE { resource:Q16333896 property:P1050 ?l . ?l rdf:type ontology:Q2057971 }
Tony Porcel
action filter_type
action find
entity Tony Porcel
relation medical condition
type health problem
['Tony Porcel', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?l WHERE { resource:Tony_Porcel property:medical_condition ?l . ?l rdf:type ontology:health_problem }
[]
health problem
Q11081
SYSTEM
Alzheimer's disease
Q11081
(Q16333896,P1050,c(Q2057971))
action filter_type
action find
entity Q16333896
relation P1050
type Q2057971
[ANSWER]
['Q16333896', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?l WHERE { resource:Q16333896 property:P1050 ?l . ?l rdf:type ontology:Q2057971 }
Alzheimer's disease
Alzheimer's disease
action filter_type
action find
entity Tony Porcel
relation medical condition
type health problem
['Tony Porcel', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?l WHERE { resource:Tony_Porcel property:medical_condition ?l . ?l rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q11081 Q5294356
P1050
Q502895
USER
Is Donald Finkel afflicted by that health problem ?
(Q5294356,P1050,Q11081)
action is_in
entity Q11081
action find
entity Q5294356
relation P1050
['Q5294356', 'P1050', 'Q11081']
ASK WHERE { resource:Q5294356 property:P1050 resource:Q11081 }
Alzheimer's disease Donald Finkel
action is_in
entity Alzheimer's disease
action find
entity Donald Finkel
relation medical condition
['Donald Finkel', 'medical condition', "Alzheimer's disease"]
ASK WHERE { resource:Donald_Finkel property:medical_condition resource:Alzheimer's_disease }
[]
common name
SYSTEM
YES
(Q5294356,P1050,Q11081)
action is_in
entity Q11081
action find
entity Q5294356
relation P1050
[ANSWER]
['Q5294356', 'P1050', 'Q11081']
ASK WHERE { resource:Q5294356 property:P1050 resource:Q11081 }
Yes
action is_in
entity Alzheimer's disease
action find
entity Donald Finkel
relation medical condition
['Donald Finkel', 'medical condition', "Alzheimer's disease"]
ASK WHERE { resource:Donald_Finkel property:medical_condition resource:Alzheimer's_disease }
[]