Simple Question (Direct)
Simple Question
Q453329
P607
Q198
USER
Which battle did Hal Clement take part in ?
(Q453329,P607,c(Q198))
action filter_type
action find
entity Q453329
relation P607
type Q198
['Q453329', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?n WHERE { resource:Q453329 property:P607 ?n . ?n rdf:type ontology:Q198 }
Hal Clement
action filter_type
action find
entity Hal Clement
relation conflict
type war
['Hal Clement', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?n WHERE { resource:Hal_Clement property:conflict ?n . ?n rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q453329,P607,c(Q198))
action filter_type
action find
entity Q453329
relation P607
type Q198
Hal Clement took part in [ANSWER]
['Q453329', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?n WHERE { resource:Q453329 property:P607 ?n . ?n rdf:type ontology:Q198 }
World War II
Hal Clement took part in World War II
World War II
action filter_type
action find
entity Hal Clement
relation conflict
type war
['Hal Clement', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?n WHERE { resource:Hal_Clement property:conflict ?n . ?n rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q453329
P509
Q2057971
USER
What was the cause of death of Hal Clement ?
(Q453329,P509,c(Q2057971))
action filter_type
action find
entity Q453329
relation P509
type Q2057971
['Q453329', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?c WHERE { resource:Q453329 property:P509 ?c . ?c rdf:type ontology:Q2057971 }
Hal Clement
action filter_type
action find
entity Hal Clement
relation cause of death
type health problem
['Hal Clement', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?c WHERE { resource:Hal_Clement property:cause_of_death ?c . ?c rdf:type ontology:health_problem }
[]
health problem
Q12206
SYSTEM
diabetes mellitus
Q12206
(Q453329,P509,c(Q2057971))
action filter_type
action find
entity Q453329
relation P509
type Q2057971
The cause of death of Hal Clement was [ANSWER]
['Q453329', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?c WHERE { resource:Q453329 property:P509 ?c . ?c rdf:type ontology:Q2057971 }
diabetes mellitus
The cause of death of Hal Clement was diabetes mellitus
diabetes mellitus
action filter_type
action find
entity Hal Clement
relation cause of death
type health problem
['Hal Clement', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?c WHERE { resource:Hal_Clement property:cause_of_death ?c . ?c rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12206
P1995
Q1047113
USER
What is the medical speciality of that health problem ?
(Q12206,P1995,c(Q1047113))
action filter_type
action find
entity Q12206
relation P1995
type Q1047113
['Q12206', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?m WHERE { resource:Q12206 property:P1995 ?m . ?m rdf:type ontology:Q1047113 }
diabetes mellitus
action filter_type
action find
entity diabetes mellitus
relation medical specialty
type special field
['diabetes mellitus', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?m WHERE { resource:diabetes_mellitus property:medical_specialty ?m . ?m rdf:type ontology:special_field }
[]
special field
Q1207969
SYSTEM
diabetology
Q1207969
(Q12206,P1995,c(Q1047113))
action filter_type
action find
entity Q12206
relation P1995
type Q1047113
The medical speciality of that health problem is called [ANSWER]
['Q12206', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?m WHERE { resource:Q12206 property:P1995 ?m . ?m rdf:type ontology:Q1047113 }
diabetology
The medical speciality of that health problem is called diabetology
diabetology
action filter_type
action find
entity diabetes mellitus
relation medical specialty
type special field
['diabetes mellitus', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?m WHERE { resource:diabetes_mellitus property:medical_specialty ?m . ?m rdf:type ontology:special_field }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P361
Q1914636 Q5962346 Q1047113
USER
Which special fields are a component of approximately the same number of activities and classification schemes as that special field ?
(c(Q1047113),P361,c(Q1914636)|c(Q5962346))
action approx
action union
action find_tuple_counts
relation P361
type Q1047113
type Q1914636
action find_tuple_counts
relation P361
type Q1047113
type Q5962346
action count
action filter_multi_types
action find
entity Q1207969
relation P361
type Q1914636
type Q5962346
[{'concept': 'Q1047113'}, 'P361', [{'concept': 'Q1914636'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?o ) WHERE { { ?c property:P361 ?k . ?c rdf:type ontology:Q1047113 . ?k rdf:type ontology:Q1914636 } UNION { ?c property:P361 ?k . ?c rdf:type ontology:Q1047113 . ?k rdf:type ontology:Q5962346 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { resource:Q1207969 property:P361 ?a . { { ?a rdf:type ontology:Q1914636 } UNION { ?a rdf:type ontology:Q5962346 } } } } . FILTER ( ?o = ?p ) }
action approx
action union
action find_tuple_counts
relation part of
type special field
type activity
action find_tuple_counts
relation part of
type special field
type classification scheme
action count
action filter_multi_types
action find
entity diabetology
relation part of
type activity
type classification scheme
[{'concept': 'special field'}, 'part of', [{'concept': 'activity'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?o ) WHERE { { ?c property:part_of ?k . ?c rdf:type ontology:special_field . ?k rdf:type ontology:activity } UNION { ?c property:part_of ?k . ?c rdf:type ontology:special_field . ?k rdf:type ontology:classification_scheme } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { resource:diabetology property:part_of ?a . { { ?a rdf:type ontology:activity } UNION { ?a rdf:type ontology:classification_scheme } } } } . FILTER ( ?o = ?p ) }
[]
activity classification scheme special field
SYSTEM
102
Q614304 Q17002728 Q539690 Q2964004 Q203337 Q21572183 Q128406 Q932510 Q1507246 Q60195 Q745328 Q180502 Q21614234 Q488059 Q1407263 Q15304508 Q103824 Q235007 Q4117183 Q7218 Q327657 Q81009 Q7234391 Q208217 Q7754 Q177635 Q2027981 Q48803 Q27133094 Q739465 Q182468 Q338379 Q861689 Q4785472 Q7922 Q1335366 Q1278791 Q134435 Q120569 Q11351 Q4260703 Q80015 Q775325 Q5611339 Q199655 Q47417 Q14177941 Q1569011 Q642836 Q428691 Q2442870 Q10379 Q6497044 Q21928196 Q743664 Q459381 Q1207969 Q1000058 Q1650750 Q80006 Q1066186 Q623100 Q80083 Q145903 Q220821 Q1456948 Q898674 Q22811234 Q899279 Q1662333 Q121713 Q188449 Q1430816 Q131089 Q460162 Q162606 Q52120 Q454812 Q2108944 Q613566 Q126552 Q760348 Q3448005 Q2713123 Q1498222 Q1916458 Q207011 Q1046686 Q1774688 Q2728012 Q286452 Q489119 Q504033 Q1328949 Q141495 Q16683089 Q15218776 Q1741745 Q1514678 Q52106 Q333024 Q1741922
(c(Q1047113),P361,c(Q1914636)|c(Q5962346))
action approx
action union
action find_tuple_counts
relation P361
type Q1047113
type Q1914636
action find_tuple_counts
relation P361
type Q1047113
type Q5962346
action count
action filter_multi_types
action find
entity Q1207969
relation P361
type Q1914636
type Q5962346
[ANSWER]
[{'concept': 'Q1047113'}, 'P361', [{'concept': 'Q1914636'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?o ) WHERE { { ?c property:P361 ?k . ?c rdf:type ontology:Q1047113 . ?k rdf:type ontology:Q1914636 } UNION { ?c property:P361 ?k . ?c rdf:type ontology:Q1047113 . ?k rdf:type ontology:Q5962346 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { resource:Q1207969 property:P361 ?a . { { ?a rdf:type ontology:Q1914636 } UNION { ?a rdf:type ontology:Q5962346 } } } } . FILTER ( ?o = ?p ) }
pharmacy branch of botany angiology thoracic surgery pulmonology modeling, virtual environments and simulation pharmacology general surgery media education semiotics mathematical statistics parasitology agricultural business and management philosophical anthropology forensic psychiatry pathogen transmission ontology hematology cardiac surgery Open Biomedical Ontologies toxicology rheumatology rhetoric Postmodernist anthropology literary science mathematical analysis nephrology oral surgery horticulture vaccine development study of the Hebrew language hydrography trauma surgery Education economics archaeological sub-discipline pedagogy neuroendocrinology anarchist schools of thought topography gastroenterology organic chemistry railway engineering Obstetrics gynecology transport engineering grouser library science international economics State/County Subdivision Outline Maps Urban history Neuroradiology computer engineering lepidopterology cardiology history of literature legal medicine Abdominal surgery literary theory diabetology psychoneuroendocrinology neuropathology computer programming science of history business engineering humanities egyptology visual sociology geobotany neonatology branch of philosophy Controlling infection epidemiology acupuncture neurosurgery pediatric surgery geodesy museology endocrinology glaciology forensic medicine press statistics software configuration management business informatics eye surgery radical centrism phlebology vascular surgery media economy neuroscience allergology clinical pharmacology neurobiology Hand surgery Hellenic studies oral and maxillofacial surgery neuropediatrics mathematical optimization endocrine oncology orthopedic surgery Child and adolescent psychiatry gerontopsychiatry biogeography pluralism pediatric urology
102
action approx
action union
action find_tuple_counts
relation part of
type special field
type activity
action find_tuple_counts
relation part of
type special field
type classification scheme
action count
action filter_multi_types
action find
entity diabetology
relation part of
type activity
type classification scheme
[{'concept': 'special field'}, 'part of', [{'concept': 'activity'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?o ) WHERE { { ?c property:part_of ?k . ?c rdf:type ontology:special_field . ?k rdf:type ontology:activity } UNION { ?c property:part_of ?k . ?c rdf:type ontology:special_field . ?k rdf:type ontology:classification_scheme } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { resource:diabetology property:part_of ?a . { { ?a rdf:type ontology:activity } UNION { ?a rdf:type ontology:classification_scheme } } } } . FILTER ( ?o = ?p ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P3091
Q502895 Q3745054 Q502895
USER
Which people rides on a max number of people and horse breeds ?
(c(Q502895),P3091,c(Q502895)|c(Q3745054))
action argmax
action union
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q502895'}, {'concept': 'Q3745054'}]]
SELECT DISTINCT ?a WHERE { FILTER ( ?v = ?s ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?v ) WHERE { VALUES ( ?k ) { ( ontology:Q502895 ) ( ontology:Q3745054 ) } . ?j rdf:type ?k } GROUP BY ?a } . { SELECT DISTINCT ( MAX ( ?i ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?i ) WHERE { { ?e property:P3091 ?g . ?e rdf:type ontology:Q502895 . ?g rdf:type ontology:Q502895 } UNION { ?g rdf:type ontology:Q3745054 . ?e rdf:type ontology:Q502895 . ?e property:P3091 ?g } } GROUP BY ?e } } }
action argmax
action union
action find_tuple_counts
relation mount
type common name
type common name
action find_tuple_counts
relation mount
type common name
type horse breed
[{'concept': 'common name'}, 'mount', [{'concept': 'common name'}, {'concept': 'horse breed'}]]
SELECT DISTINCT ?a WHERE { FILTER ( ?v = ?s ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?v ) WHERE { VALUES ( ?k ) { ( ontology:common_name ) ( ontology:horse_breed ) } . ?j rdf:type ?k } GROUP BY ?a } . { SELECT DISTINCT ( MAX ( ?i ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?i ) WHERE { { ?e property:mount ?g . ?e rdf:type ontology:common_name . ?g rdf:type ontology:common_name } UNION { ?g rdf:type ontology:horse_breed . ?e rdf:type ontology:common_name . ?e property:mount ?g } } GROUP BY ?e } } }
[]
common name horse breed common name
Q724288
SYSTEM
Rodrigo Pessoa
Q724288
(c(Q502895),P3091,c(Q502895)|c(Q3745054))
action argmax
action union
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
[ANSWER] rides on a max number of people and horse breeds
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q502895'}, {'concept': 'Q3745054'}]]
SELECT DISTINCT ?a WHERE { FILTER ( ?v = ?s ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?v ) WHERE { VALUES ( ?k ) { ( ontology:Q502895 ) ( ontology:Q3745054 ) } . ?j rdf:type ?k } GROUP BY ?a } . { SELECT DISTINCT ( MAX ( ?i ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?i ) WHERE { { ?e property:P3091 ?g . ?e rdf:type ontology:Q502895 . ?g rdf:type ontology:Q502895 } UNION { ?g rdf:type ontology:Q3745054 . ?e rdf:type ontology:Q502895 . ?e property:P3091 ?g } } GROUP BY ?e } } }
Rodrigo Pessoa
Rodrigo Pessoa rides on a max number of people and horse breeds
Rodrigo Pessoa
action argmax
action union
action find_tuple_counts
relation mount
type common name
type common name
action find_tuple_counts
relation mount
type common name
type horse breed
[{'concept': 'common name'}, 'mount', [{'concept': 'common name'}, {'concept': 'horse breed'}]]
SELECT DISTINCT ?a WHERE { FILTER ( ?v = ?s ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?v ) WHERE { VALUES ( ?k ) { ( ontology:common_name ) ( ontology:horse_breed ) } . ?j rdf:type ?k } GROUP BY ?a } . { SELECT DISTINCT ( MAX ( ?i ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?i ) WHERE { { ?e property:mount ?g . ?e rdf:type ontology:common_name . ?g rdf:type ontology:common_name } UNION { ?g rdf:type ontology:horse_breed . ?e rdf:type ontology:common_name . ?e property:mount ?g } } GROUP BY ?e } } }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q724288 Q20551 Q155
P27
Q15617994
USER
Is that person a civilian of Vezza d'Alba and Brazil ?
(Q724288,P27,Q20551) (Q724288,P27,Q155)
action is_in
entity Q724288
action intersection
action find_reverse
entity Q20551
relation P27
action find_reverse
entity Q155
relation P27
['Q724288', 'P27', 'Q20551'] ['Q724288', 'P27', 'Q155']
ASK WHERE { resource:Q724288 property:P27 resource:Q20551 . resource:Q724288 property:P27 resource:Q155 }
Rodrigo Pessoa Vezza d'Alba Brazil
action is_in
entity Rodrigo Pessoa
action intersection
action find_reverse
entity Vezza d'Alba
relation country of citizenship
action find_reverse
entity Brazil
relation country of citizenship
['Rodrigo Pessoa', 'country of citizenship', "Vezza d'Alba"] ['Rodrigo Pessoa', 'country of citizenship', 'Brazil']
ASK WHERE { resource:Rodrigo_Pessoa property:country_of_citizenship resource:Vezza_d'Alba . resource:Rodrigo_Pessoa property:country_of_citizenship resource:Brazil }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q724288,P27,Q20551) (Q724288,P27,Q155)
action is_in
entity Q724288
action intersection
action find_reverse
entity Q20551
relation P27
action find_reverse
entity Q155
relation P27
[ANSWER]
['Q724288', 'P27', 'Q20551'] ['Q724288', 'P27', 'Q155']
ASK WHERE { resource:Q724288 property:P27 resource:Q20551 . resource:Q724288 property:P27 resource:Q155 }
NO and YES respectively
action is_in
entity Rodrigo Pessoa
action intersection
action find_reverse
entity Vezza d'Alba
relation country of citizenship
action find_reverse
entity Brazil
relation country of citizenship
['Rodrigo Pessoa', 'country of citizenship', "Vezza d'Alba"] ['Rodrigo Pessoa', 'country of citizenship', 'Brazil']
ASK WHERE { resource:Rodrigo_Pessoa property:country_of_citizenship resource:Vezza_d'Alba . resource:Rodrigo_Pessoa property:country_of_citizenship resource:Brazil }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q2563510
P1303
Q34379 Q502895
USER
Which musical instruments can more number of people perform with than steel-string acoustic guitar ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q2563510
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:Q2563510 property:P1303 ?g . ?g rdf:type ontology:Q34379 } } . FILTER ( ?h > ?w ) }
steel-string acoustic guitar
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity steel-string acoustic guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:steel-string_acoustic_guitar property:instrument ?g . ?g rdf:type ontology:musical_instrument } } . FILTER ( ?h > ?w ) }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q5994 Q81982 Q206987 Q8338 Q8371 Q8355 Q3382191 Q742180 Q1444 Q220971 Q128309 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q2563510
relation P1303
type Q34379
[ANSWERS] can more number of people perform with than steel-string acoustic guitar
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:Q2563510 property:P1303 ?g . ?g rdf:type ontology:Q34379 } } . FILTER ( ?h > ?w ) }
viola bass guitar double bass piano harpsichord vibraphone trumpet cello violin upright piano viola d'amore organ marimba drum kit electronic keyboard drum
Piano, harpsichord and viola can more number of people perform with than steel-string acoustic guitar
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity steel-string acoustic guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:steel-string_acoustic_guitar property:instrument ?g . ?g rdf:type ontology:musical_instrument } } . FILTER ( ?h > ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q593995
P1303
Q34379 Q502895
USER
And what about player piano?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q593995
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?t ) WHERE { ?o rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 . ?v property:P1303 ?o } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q593995 property:P1303 ?z . ?z rdf:type ontology:Q34379 } } . FILTER ( ?t > ?k ) }
player piano
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity player piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?t ) WHERE { ?o rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name . ?v property:instrument ?o } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:player_piano property:instrument ?z . ?z rdf:type ontology:musical_instrument } } . FILTER ( ?t > ?k ) }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q593995
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?t ) WHERE { ?o rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 . ?v property:P1303 ?o } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q593995 property:P1303 ?z . ?z rdf:type ontology:Q34379 } } . FILTER ( ?t > ?k ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity player piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?t ) WHERE { ?o rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name . ?v property:instrument ?o } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:player_piano property:instrument ?z . ?z rdf:type ontology:musical_instrument } } . FILTER ( ?t > ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q941608
P841
Q186081 Q573 Q502895
USER
Which people have less number of time intervals and days as their principal feast day than Raphael Kalinowski ?
(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 Q941608
relation P841
type Q186081
type Q573
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?c ) WHERE { ?x rdf:type ?u . VALUES ( ?u ) { ( ontology:Q186081 ) ( ontology:Q573 ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { resource:Q941608 property:P841 ?w . { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:Q186081 ) ( ontology:Q573 ) } } } } . FILTER ( ?c < ?z ) }
Raphael Kalinowski
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 Raphael Kalinowski
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?c ) WHERE { ?x rdf:type ?u . VALUES ( ?u ) { ( ontology:time_interval ) ( ontology:day ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { resource:Raphael_Kalinowski property:feast_day ?w . { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:time_interval ) ( ontology:day ) } } } } . FILTER ( ?c < ?z ) }
[]
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 Q941608
relation P841
type Q186081
type Q573
[ANSWERS] have less number of time intervals and days as their principal feast day than Raphael Kalinowski
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?c ) WHERE { ?x rdf:type ?u . VALUES ( ?u ) { ( ontology:Q186081 ) ( ontology:Q573 ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { resource:Q941608 property:P841 ?w . { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:Q186081 ) ( ontology:Q573 ) } } } } . FILTER ( ?c < ?z ) }
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 Raphael Kalinowski
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 Raphael Kalinowski
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?c ) WHERE { ?x rdf:type ?u . VALUES ( ?u ) { ( ontology:time_interval ) ( ontology:day ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { resource:Raphael_Kalinowski property:feast_day ?w . { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:time_interval ) ( ontology:day ) } } } } . FILTER ( ?c < ?z ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q25184520
P841
Q186081 Q573 Q502895
USER
And what about Saint Conval?
(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 Q25184520
relation P841
type Q186081
type Q573
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?d ) WHERE { { ?q property:P841 ?x . ?x rdf:type ontology:Q186081 . ?q rdf:type ontology:Q502895 } UNION { ?q property:P841 ?x . ?q rdf:type ontology:Q502895 . ?x rdf:type ontology:Q573 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { resource:Q25184520 property:P841 ?k . { { ?k rdf:type ontology:Q186081 } UNION { ?k rdf:type ontology:Q573 } } } } . FILTER ( ?d < ?n ) }
Saint Conval
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 Saint Conval
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?d ) WHERE { { ?q property:feast_day ?x . ?x rdf:type ontology:time_interval . ?q rdf:type ontology:common_name } UNION { ?q property:feast_day ?x . ?q rdf:type ontology:common_name . ?x rdf:type ontology:day } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { resource:Saint_Conval property:feast_day ?k . { { ?k rdf:type ontology:time_interval } UNION { ?k rdf:type ontology:day } } } } . FILTER ( ?d < ?n ) }
[]
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 Q25184520
relation P841
type Q186081
type Q573
[ANSWERS]
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?d ) WHERE { { ?q property:P841 ?x . ?x rdf:type ontology:Q186081 . ?q rdf:type ontology:Q502895 } UNION { ?q property:P841 ?x . ?q rdf:type ontology:Q502895 . ?x rdf:type ontology:Q573 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { resource:Q25184520 property:P841 ?k . { { ?k rdf:type ontology:Q186081 } UNION { ?k rdf:type ontology:Q573 } } } } . FILTER ( ?d < ?n ) }
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 Saint Conval
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?d ) WHERE { { ?q property:feast_day ?x . ?x rdf:type ontology:time_interval . ?q rdf:type ontology:common_name } UNION { ?q property:feast_day ?x . ?q rdf:type ontology:common_name . ?x rdf:type ontology:day } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { resource:Saint_Conval property:feast_day ?k . { { ?k rdf:type ontology:time_interval } UNION { ?k rdf:type ontology:day } } } } . FILTER ( ?d < ?n ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q167477
P825
Q44539
USER
Which temples have dedication towards that person ?
(c(Q44539),P825,Q167477)
action filter_type
action find_reverse
entity Q167477
relation P825
type Q44539
[{'concept': 'Q44539'}, 'P825', 'Q167477']
SELECT DISTINCT ?w WHERE { ?w property:P825 resource:Q167477 . ?w rdf:type ontology:Q44539 }
Anthony of Padua
action filter_type
action find_reverse
entity Anthony of Padua
relation dedicated to
type temple
[{'concept': 'temple'}, 'dedicated to', 'Anthony of Padua']
SELECT DISTINCT ?w WHERE { ?w property:dedicated_to resource:Anthony_of_Padua . ?w rdf:type ontology:temple }
[]
temple
Clarification for simple ques.
Q679784
SYSTEM
Did you mean Pier Giorgio Frassati ?
Q679784 Q3047912 Q167477
(c(Q44539),P825,Q679784) (c(Q44539),P825,Q3047912) (c(Q44539),P825,Q167477)
[ANSWER]
[{'concept': 'Q44539'}, 'P825', 'Q679784'] [{'concept': 'Q44539'}, 'P825', 'Q3047912'] [{'concept': 'Q44539'}, 'P825', 'Q167477']
SELECT DISTINCT ?w WHERE { ?w property:P825 resource:Q167477 . ?w rdf:type ontology:Q44539 }
Pier Giorgio Frassati Seraphina Sforza Anthony of Padua
Did you mean Pier Giorgio Frassati ?
Pier Giorgio Frassati
[{'concept': 'temple'}, 'dedicated to', 'Pier Giorgio Frassati'] [{'concept': 'temple'}, 'dedicated to', 'Seraphina Sforza'] [{'concept': 'temple'}, 'dedicated to', 'Anthony of Padua']
SELECT DISTINCT ?w WHERE { ?w property:dedicated_to resource:Anthony_of_Padua . ?w rdf:type ontology:temple }
[]
Simple Question (Coreferenced)
USER
No, I meant Anthony of Padua. Could you tell me the answer for that?
(c(Q44539),P825,Q167477)
Q167477
[{'concept': 'Q44539'}, 'P825', 'Q167477']
[{'concept': 'temple'}, 'dedicated to', 'Anthony of Padua']
[]
Q21074642 Q1125814
SYSTEM
Saint Joseph and Saint Antony of Padua church, Mozes en Aäronkerk
Q21074642 Q1125814
(c(Q44539),P825,Q167477)
action filter_type
action find_reverse
entity Q167477
relation P825
type Q44539
[ANSWERS] have dedication towards that person
[{'concept': 'Q44539'}, 'P825', 'Q167477']
SELECT DISTINCT ?w WHERE { ?w property:P825 resource:Q167477 . ?w rdf:type ontology:Q44539 }
Saint Joseph and Saint Antony of Padua church Mozes en Aäronkerk
Saint Joseph and Saint Antony of Padua church and Mozes en Aäronkerk have dedication towards that person
Saint Joseph and Saint Antony of Padua church Mozes en Aäronkerk
action filter_type
action find_reverse
entity Anthony of Padua
relation dedicated to
type temple
[{'concept': 'temple'}, 'dedicated to', 'Anthony of Padua']
SELECT DISTINCT ?w WHERE { ?w property:dedicated_to resource:Anthony_of_Padua . ?w rdf:type ontology:temple }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q21074642 Q1125814
P17
Q15617994
USER
Which administrative territories do those temples belong to ?
(Q21074642,P17,c(Q15617994)) (Q1125814,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q21074642', 'P17', {'concept': 'Q15617994'}] ['Q1125814', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . ?b property:P17 ?n . VALUES ( ?b ) { ( resource:Q21074642 ) ( resource:Q1125814 ) } }
Saint Joseph and Saint Antony of Padua church Mozes en Aäronkerk
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Saint Joseph and Saint Antony of Padua church', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Mozes en Aäronkerk', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:country ?n . VALUES ( ?b ) { ( resource:Saint_Joseph_and_Saint_Antony_of_Padua_church ) ( resource:Mozes_en_Aäronkerk ) } }
[]
designation for an administrative territorial entity
Q31 Q55
SYSTEM
Belgium, Netherlands
Q31 Q55
(Q21074642,P17,c(Q15617994)) (Q1125814,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those temples belong to [ANSWERS]
['Q21074642', 'P17', {'concept': 'Q15617994'}] ['Q1125814', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . ?b property:P17 ?n . VALUES ( ?b ) { ( resource:Q21074642 ) ( resource:Q1125814 ) } }
Belgium Netherlands
Those temples belong to Belgium and Netherlands
Belgium Netherlands
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Saint Joseph and Saint Antony of Padua church', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Mozes en Aäronkerk', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:country ?n . VALUES ( ?b ) { ( resource:Saint_Joseph_and_Saint_Antony_of_Padua_church ) ( resource:Mozes_en_Aäronkerk ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q31 Q55
P85
Q484692
USER
Which hymns are the anthems for those administrative territories ?
(Q31,P85,c(Q484692)) (Q55,P85,c(Q484692))
action filter_type
action find
entity prev_answer
relation P85
type Q484692
['Q31', 'P85', {'concept': 'Q484692'}] ['Q55', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?p ) { ( resource:Q31 ) ( resource:Q55 ) } . ?m rdf:type ontology:Q484692 . ?p property:P85 ?m }
Belgium Netherlands
action filter_type
action find
entity prev_answer
relation anthem
type hymn
['Belgium', 'anthem', {'concept': 'hymn'}] ['Netherlands', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?p ) { ( resource:Belgium ) ( resource:Netherlands ) } . ?m rdf:type ontology:hymn . ?p property:anthem ?m }
[]
hymn
Q161539 Q131713
SYSTEM
The Brabançonne, Wilhelmus
Q161539 Q131713
(Q31,P85,c(Q484692)) (Q55,P85,c(Q484692))
action filter_type
action find
entity prev_answer
relation P85
type Q484692
[ANSWERS] are the anthems for those administrative territories
['Q31', 'P85', {'concept': 'Q484692'}] ['Q55', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?p ) { ( resource:Q31 ) ( resource:Q55 ) } . ?m rdf:type ontology:Q484692 . ?p property:P85 ?m }
The Brabançonne Wilhelmus
The Brabançonne and Wilhelmus are the anthems for those administrative territories
The Brabançonne Wilhelmus
action filter_type
action find
entity prev_answer
relation anthem
type hymn
['Belgium', 'anthem', {'concept': 'hymn'}] ['Netherlands', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?p ) { ( resource:Belgium ) ( resource:Netherlands ) } . ?m rdf:type ontology:hymn . ?p property:anthem ?m }
[]
Clarification
Simple Question|Single Entity|Indirect
Q131713
P676
Q502895
USER
Which person wrote the lyrics of that hymn ?
(Q131713,P676,c(Q502895))
action filter_type
action find
entity Q131713
relation P676
type Q502895
['Q131713', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q131713 property:P676 ?l . ?l rdf:type ontology:Q502895 }
Wilhelmus
action filter_type
action find
entity Wilhelmus
relation lyrics by
type common name
['Wilhelmus', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Wilhelmus property:lyrics_by ?l . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q161539
SYSTEM
Did you mean The Brabançonne ?
Q161539 Q131713
(Q161539,P676,c(Q502895)) (Q131713,P676,c(Q502895))
[ANSWER]
['Q161539', 'P676', {'concept': 'Q502895'}] ['Q131713', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q131713 property:P676 ?l . ?l rdf:type ontology:Q502895 }
The Brabançonne Wilhelmus
Did you mean The Brabançonne ?
The Brabançonne
['The Brabançonne', 'lyrics by', {'concept': 'common name'}] ['Wilhelmus', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Wilhelmus property:lyrics_by ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Wilhelmus. Could you tell me the answer for that?
(Q131713,P676,c(Q502895))
Q131713
['Q131713', 'P676', {'concept': 'Q502895'}]
['Wilhelmus', 'lyrics by', {'concept': 'common name'}]
[]
Q701605
SYSTEM
Philips of Marnix, Lord of Saint-Aldegonde
Q701605
(Q131713,P676,c(Q502895))
action filter_type
action find
entity Q131713
relation P676
type Q502895
[ANSWER] wrote the lyrics of that hymn
['Q131713', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q131713 property:P676 ?l . ?l rdf:type ontology:Q502895 }
Philips of Marnix, Lord of Saint-Aldegonde
Philips of Marnix, Lord of Saint-Aldegonde wrote the lyrics of that hymn
Philips of Marnix, Lord of Saint-Aldegonde
action filter_type
action find
entity Wilhelmus
relation lyrics by
type common name
['Wilhelmus', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Wilhelmus property:lyrics_by ?l . ?l rdf:type ontology:common_name }
[]