Simple Question (Direct)
Simple Question
Q5236177
P463
Q811430
USER
Which organization was David L. Bazelon a member of ?
(Q5236177,P463,c(Q811430))
action filter_type
action find
entity Q5236177
relation P463
type Q811430
['Q5236177', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?o WHERE { resource:Q5236177 property:P463 ?o . ?o rdf:type ontology:Q811430 }
David L. Bazelon
action filter_type
action find
entity David L. Bazelon
relation member of
type construction
['David L. Bazelon', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?o WHERE { resource:David_L._Bazelon property:member_of ?o . ?o rdf:type ontology:construction }
[]
construction
Q463303
SYSTEM
American Academy of Arts and Sciences
Q463303
(Q5236177,P463,c(Q811430))
action filter_type
action find
entity Q5236177
relation P463
type Q811430
The [ANSWER] was David L. Bazelon a member of
['Q5236177', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?o WHERE { resource:Q5236177 property:P463 ?o . ?o rdf:type ontology:Q811430 }
American Academy of Arts and Sciences
The American Academy of Arts and Sciences was David L. Bazelon a member of
American Academy of Arts and Sciences
action filter_type
action find
entity David L. Bazelon
relation member of
type construction
['David L. Bazelon', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?o WHERE { resource:David_L._Bazelon property:member_of ?o . ?o rdf:type ontology:construction }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5236177
P1050
Q2057971
USER
What is that person affected by ?
(Q463303,P1050,c(Q2057971))
action filter_type
action find
entity Q5236177
relation P1050
type Q2057971
['Q463303', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { resource:Q5236177 property:P1050 ?j . ?j rdf:type ontology:Q2057971 }
David L. Bazelon
action filter_type
action find
entity David L. Bazelon
relation medical condition
type health problem
['American Academy of Arts and Sciences', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { resource:David_L._Bazelon property:medical_condition ?j . ?j rdf:type ontology:health_problem }
[]
health problem
Q11081
SYSTEM
Alzheimer's disease
Q11081
(Q463303,P1050,c(Q2057971))
action filter_type
action find
entity Q5236177
relation P1050
type Q2057971
Is affected by the [ANSWER]
['Q463303', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { resource:Q5236177 property:P1050 ?j . ?j rdf:type ontology:Q2057971 }
Alzheimer's disease
Is affected by the Alzheimer's disease
Alzheimer's disease
action filter_type
action find
entity David L. Bazelon
relation medical condition
type health problem
['American Academy of Arts and Sciences', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { resource:David_L._Bazelon property:medical_condition ?j . ?j rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q11081 Q565835
P1050
Q502895
USER
Does Anne Tismer suffer from that health problem ?
(Q565835,P1050,Q11081)
action is_in
entity Q565835
action find
entity Q11081
relation P1050
['Q565835', 'P1050', 'Q11081']
ASK WHERE { resource:Q11081 property:P1050 resource:Q565835 }
Alzheimer's disease Anne Tismer
action is_in
entity Anne Tismer
action find
entity Alzheimer's disease
relation medical condition
['Anne Tismer', 'medical condition', "Alzheimer's disease"]
ASK WHERE { resource:Alzheimer's_disease property:medical_condition resource:Anne_Tismer }
[]
common name
SYSTEM
NO
(Q565835,P1050,Q11081)
action is_in
entity Q565835
action find
entity Q11081
relation P1050
[ANSWER]
['Q565835', 'P1050', 'Q11081']
ASK WHERE { resource:Q11081 property:P1050 resource:Q565835 }
No
action is_in
entity Anne Tismer
action find
entity Alzheimer's disease
relation medical condition
['Anne Tismer', 'medical condition', "Alzheimer's disease"]
ASK WHERE { resource:Alzheimer's_disease property:medical_condition resource:Anne_Tismer }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5236177 Q30
P27
Q15617994
USER
Is David L. Bazelon a civilian of United States of America ?
(Q5236177,P27,Q30)
action is_in
entity Q30
action find
entity Q5236177
relation P27
['Q5236177', 'P27', 'Q30']
ASK WHERE { resource:Q5236177 property:P27 resource:Q30 }
David L. Bazelon United States of America
action is_in
entity United States of America
action find
entity David L. Bazelon
relation country of citizenship
['David L. Bazelon', 'country of citizenship', 'United States of America']
ASK WHERE { resource:David_L._Bazelon property:country_of_citizenship resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q5236177,P27,Q30)
action is_in
entity Q30
action find
entity Q5236177
relation P27
[ANSWER]
['Q5236177', 'P27', 'Q30']
ASK WHERE { resource:Q5236177 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity David L. Bazelon
relation country of citizenship
['David L. Bazelon', 'country of citizenship', 'United States of America']
ASK WHERE { resource:David_L._Bazelon property:country_of_citizenship resource:United_States_of_America }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2040534 Q5236177
P20
Q56061
USER
Which administrative territories did David L. Bazelon or Otto Schubert expire ?
OR((Q5236177,P20,c(Q56061)), (Q2040534,P20,c(Q56061)))
action filter_type
action union
action find
entity Q5236177
relation P20
action find
entity Q2040534
relation P20
type Q56061
{'OR': [['Q5236177', 'P20', {'concept': 'Q56061'}], ['Q2040534', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q5236177 property:P20 ?k } UNION { resource:Q2040534 property:P20 ?k } } . ?k rdf:type ontology:Q56061 }
Otto Schubert David L. Bazelon
action filter_type
action union
action find
entity David L. Bazelon
relation place of death
action find
entity Otto Schubert
relation place of death
type administrative territorial entity
{'OR': [['David L. Bazelon', 'place of death', {'concept': 'administrative territorial entity'}], ['Otto Schubert', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:David_L._Bazelon property:place_of_death ?k } UNION { resource:Otto_Schubert property:place_of_death ?k } } . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3874 Q61
SYSTEM
Gießen, Washington, D.C.
Q3874 Q61
OR((Q5236177,P20,c(Q56061)), (Q2040534,P20,c(Q56061)))
action filter_type
action union
action find
entity Q5236177
relation P20
action find
entity Q2040534
relation P20
type Q56061
[ANSWERS]
{'OR': [['Q5236177', 'P20', {'concept': 'Q56061'}], ['Q2040534', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q5236177 property:P20 ?k } UNION { resource:Q2040534 property:P20 ?k } } . ?k rdf:type ontology:Q56061 }
Gießen Washington, D.C.
Gießen and Washington, D.C. did David L. Bazelon or Otto Schubert expire
Gießen Washington, D.C.
action filter_type
action union
action find
entity David L. Bazelon
relation place of death
action find
entity Otto Schubert
relation place of death
type administrative territorial entity
{'OR': [['David L. Bazelon', 'place of death', {'concept': 'administrative territorial entity'}], ['Otto Schubert', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:David_L._Bazelon property:place_of_death ?k } UNION { resource:Otto_Schubert property:place_of_death ?k } } . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3874 Q61
P190
Q515
USER
Which cities are the sister cities of Gießen and Washington, D.C. ?
(Q3874,P190,c(Q515)) (Q61,P190,c(Q515))
action union
action filter_type
action find
entity Q3874
relation P190
type Q515
action filter_type
action find
entity Q61
relation P190
type Q515
['Q3874', 'P190', {'concept': 'Q515'}] ['Q61', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { { resource:Q3874 property:P190 ?v . ?v rdf:type ontology:Q515 } UNION { resource:Q61 property:P190 ?v . ?v rdf:type ontology:Q515 } }
Gießen Washington, D.C.
action union
action filter_type
action find
entity Gießen
relation sister city
type city
action filter_type
action find
entity Washington, D.C.
relation sister city
type city
['Gießen', 'sister city', {'concept': 'city'}] ['Washington, D.C.', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { { resource:Gießen property:sister_city ?v . ?v rdf:type ontology:city } UNION { resource:Washington,_D.C. property:sister_city ?v . ?v rdf:type ontology:city } }
[]
city
Q8684 Q42635 Q9005
SYSTEM
Seoul, Wenzhou, Brussels
Q209988 Q42635 Q8684 Q3624 Q3926 Q2844 Q9005
(Q3874,P190,c(Q515)) (Q61,P190,c(Q515))
action union
action filter_type
action find
entity Q3874
relation P190
type Q515
action filter_type
action find
entity Q61
relation P190
type Q515
[ANSWERS] are the sister cities of Gießen and Washington, D.C.
['Q3874', 'P190', {'concept': 'Q515'}] ['Q61', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { { resource:Q3874 property:P190 ?v . ?v rdf:type ontology:Q515 } UNION { resource:Q61 property:P190 ?v . ?v rdf:type ontology:Q515 } }
Gödöllő Wenzhou Seoul Addis Ababa Pretoria Brasília Brussels
Seoul, Wenzhou and Brussels are the sister cities of Gießen and Washington, D.C.
Seoul Wenzhou Brussels
action union
action filter_type
action find
entity Gießen
relation sister city
type city
action filter_type
action find
entity Washington, D.C.
relation sister city
type city
['Gießen', 'sister city', {'concept': 'city'}] ['Washington, D.C.', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { { resource:Gießen property:sister_city ?v . ?v rdf:type ontology:city } UNION { resource:Washington,_D.C. property:sister_city ?v . ?v rdf:type ontology:city } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9005
P1313
Q12737077
USER
Which occupation is fulfilled by that city ?
(Q9005,P1313,c(Q12737077))
action filter_type
action find
entity Q9005
relation P1313
type Q12737077
['Q9005', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q9005 property:P1313 ?k . ?k rdf:type ontology:Q12737077 }
Brussels
action filter_type
action find
entity Brussels
relation office held by head of government
type occupation
['Brussels', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Brussels property:office_held_by_head_of_government ?k . ?k rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q42635
SYSTEM
Did you mean Wenzhou ?
Q8684 Q42635 Q9005
(Q8684,P1313,c(Q12737077)) (Q42635,P1313,c(Q12737077)) (Q9005,P1313,c(Q12737077))
[ANSWER]
['Q8684', 'P1313', {'concept': 'Q12737077'}] ['Q42635', 'P1313', {'concept': 'Q12737077'}] ['Q9005', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q9005 property:P1313 ?k . ?k rdf:type ontology:Q12737077 }
Seoul Wenzhou Brussels
Did you mean Wenzhou ?
Wenzhou
['Seoul', 'office held by head of government', {'concept': 'occupation'}] ['Wenzhou', 'office held by head of government', {'concept': 'occupation'}] ['Brussels', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Brussels property:office_held_by_head_of_government ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Brussels. Could you tell me the answer for that?
(Q9005,P1313,c(Q12737077))
Q9005
['Q9005', 'P1313', {'concept': 'Q12737077'}]
['Brussels', 'office held by head of government', {'concept': 'occupation'}]
[]
Q435627
SYSTEM
Minister-President of the Brussels-Capital Region
Q435627
(Q9005,P1313,c(Q12737077))
action filter_type
action find
entity Q9005
relation P1313
type Q12737077
The [ANSWER] is fulfilled by that city
['Q9005', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q9005 property:P1313 ?k . ?k rdf:type ontology:Q12737077 }
Minister-President of the Brussels-Capital Region
The Minister-President of the Brussels-Capital Region is fulfilled by that city
Minister-President of the Brussels-Capital Region
action filter_type
action find
entity Brussels
relation office held by head of government
type occupation
['Brussels', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Brussels property:office_held_by_head_of_government ?k . ?k rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saint of approximately 3 occupations ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?b ) WHERE { ?j property:P417 ?i . ?j rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?b = 3 ) }
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?b ) WHERE { ?j property:patron_saint ?i . ?j rdf:type ontology:occupation . ?i rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?b = 3 ) }
[]
common name occupation
Q128538 Q192816 Q200895
SYSTEM
Luke the Evangelist, Saint Barbara, Agatha of Sicily
Q128538 Q192816 Q200895
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[ANSWERS] are the patron saint of approximately 3 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?b ) WHERE { ?j property:P417 ?i . ?j rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?b = 3 ) }
Luke the Evangelist Saint Barbara Agatha of Sicily
Luke the Evangelist, Saint Barbara and Agatha of Sicily are the patron saint of approximately 3 occupations
Luke the Evangelist Saint Barbara Agatha of Sicily
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?b ) WHERE { ?j property:patron_saint ?i . ?j rdf:type ontology:occupation . ?i rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?b = 3 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q490054
P1303
Q34379 Q502895
USER
Which musical instruments can lesser number of people perform with than Ondioline ?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q490054
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:Q502895 . ?z property:P1303 resource:Q490054 } } . FILTER ( ?v < ?e ) . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?v ) WHERE { ?y rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 . ?u property:P1303 ?y } GROUP BY ?y } }
Ondioline
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Ondioline
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:common_name . ?z property:instrument resource:Ondioline } } . FILTER ( ?v < ?e ) . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?v ) WHERE { ?y rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name . ?u property:instrument ?y } GROUP BY ?y } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q490054
relation P1303
type Q502895
[ANSWERS] can lesser number of people perform with than Ondioline
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:Q502895 . ?z property:P1303 resource:Q490054 } } . FILTER ( ?v < ?e ) . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?v ) WHERE { ?y rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 . ?u property:P1303 ?y } GROUP BY ?y } }
spoon cajón wind instrument
Spoon, cajón and wind instrument can lesser number of people perform with than Ondioline
spoon cajón wind instrument
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Ondioline
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:common_name . ?z property:instrument resource:Ondioline } } . FILTER ( ?v < ?e ) . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?v ) WHERE { ?y rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name . ?u property:instrument ?y } GROUP BY ?y } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q2660670
P1303
Q34379 Q502895
USER
And what about Irish bouzouki?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q2660670
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?h < ?s ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:P1303 resource:Q2660670 . ?y rdf:type ontology:Q502895 } } . { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P1303 ?j . ?k rdf:type ontology:Q502895 . ?j rdf:type ontology:Q34379 } GROUP BY ?j } }
Irish bouzouki
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Irish bouzouki
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?h < ?s ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:instrument resource:Irish_bouzouki . ?y rdf:type ontology:common_name } } . { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:instrument ?j . ?k rdf:type ontology:common_name . ?j rdf:type ontology:musical_instrument } GROUP BY ?j } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q2660670
relation P1303
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?h < ?s ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:P1303 resource:Q2660670 . ?y rdf:type ontology:Q502895 } } . { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P1303 ?j . ?k rdf:type ontology:Q502895 . ?j rdf:type ontology:Q34379 } GROUP BY ?j } }
spoon cajón wind instrument
spoon cajón wind instrument
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Irish bouzouki
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?h < ?s ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:instrument resource:Irish_bouzouki . ?y rdf:type ontology:common_name } } . { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:instrument ?j . ?k rdf:type ontology:common_name . ?j rdf:type ontology:musical_instrument } GROUP BY ?j } }
[]