Simple Question (Direct)
Simple Question
Q1316210
P509
Q12136
USER
What was the cause of death of Marika Takács ?
(Q1316210,P509,c(Q12136))
action filter_type
action find
entity Q1316210
relation P509
type Q12136
['Q1316210', 'P509', {'concept': 'Q12136'}]
SELECT DISTINCT ?m WHERE { resource:Q1316210 property:P509 ?m . ?m rdf:type ontology:Q12136 }
Marika Takács
action filter_type
action find
entity Marika Takács
relation cause of death
type disease
['Marika Takács', 'cause of death', {'concept': 'disease'}]
SELECT DISTINCT ?m WHERE { resource:Marika_Takács property:cause_of_death ?m . ?m rdf:type ontology:disease }
[]
disease
Q12078
SYSTEM
cancer
Q12078
(Q1316210,P509,c(Q12136))
action filter_type
action find
entity Q1316210
relation P509
type Q12136
The cause of death of Marika Takács was breast [ANSWER]
['Q1316210', 'P509', {'concept': 'Q12136'}]
SELECT DISTINCT ?m WHERE { resource:Q1316210 property:P509 ?m . ?m rdf:type ontology:Q12136 }
cancer
The cause of death of Marika Takács was breast cancer
cancer
action filter_type
action find
entity Marika Takács
relation cause of death
type disease
['Marika Takács', 'cause of death', {'concept': 'disease'}]
SELECT DISTINCT ?m WHERE { resource:Marika_Takács property:cause_of_death ?m . ?m rdf:type ontology:disease }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12078
P101
Q502895
USER
Which people work in the domain of that disease ?
(c(Q502895),P101,Q12078)
action filter_type
action find_reverse
entity Q12078
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q12078']
SELECT DISTINCT ?h WHERE { ?h property:P101 resource:Q12078 . ?h rdf:type ontology:Q502895 }
cancer
action filter_type
action find_reverse
entity cancer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'cancer']
SELECT DISTINCT ?h WHERE { ?h property:field_of_work resource:cancer . ?h rdf:type ontology:common_name }
[]
common name
Q537479 Q4793502 Q17987510
SYSTEM
Alan Fersht, May Edward Chinn, Gabriel Rabinovich
Q537479 Q17987510 Q4793502 Q12002891
(c(Q502895),P101,Q12078)
action filter_type
action find_reverse
entity Q12078
relation P101
type Q502895
[ANSWERS] work in the domain of that disease
[{'concept': 'Q502895'}, 'P101', 'Q12078']
SELECT DISTINCT ?h WHERE { ?h property:P101 resource:Q12078 . ?h rdf:type ontology:Q502895 }
Alan Fersht Gabriel Rabinovich May Edward Chinn Stein Kaasa
Alan Fersht, May Edward Chinn and Gabriel Rabinovich work in the domain of that disease
Alan Fersht May Edward Chinn Gabriel Rabinovich
action filter_type
action find_reverse
entity cancer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'cancer']
SELECT DISTINCT ?h WHERE { ?h property:field_of_work resource:cancer . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12078
P1995
Q1047113
USER
Which special field is the medical specality concerned with that disease ?
(Q537479,P1995,c(Q1047113)) (Q4793502,P1995,c(Q1047113)) (Q17987510,P1995,c(Q1047113))
action filter_type
action find
entity Q12078
relation P1995
type Q1047113
['Q537479', 'P1995', {'concept': 'Q1047113'}] ['Q4793502', 'P1995', {'concept': 'Q1047113'}] ['Q17987510', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?c WHERE { resource:Q12078 property:P1995 ?c . ?c rdf:type ontology:Q1047113 }
cancer
action filter_type
action find
entity cancer
relation medical specialty
type special field
['Alan Fersht', 'medical specialty', {'concept': 'special field'}] ['May Edward Chinn', 'medical specialty', {'concept': 'special field'}] ['Gabriel Rabinovich', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?c WHERE { resource:cancer property:medical_specialty ?c . ?c rdf:type ontology:special_field }
[]
special field
Q162555
SYSTEM
oncology
Q162555
(Q537479,P1995,c(Q1047113)) (Q4793502,P1995,c(Q1047113)) (Q17987510,P1995,c(Q1047113))
action filter_type
action find
entity Q12078
relation P1995
type Q1047113
The [ANSWER] is the medical specality concerned with that disease
['Q537479', 'P1995', {'concept': 'Q1047113'}] ['Q4793502', 'P1995', {'concept': 'Q1047113'}] ['Q17987510', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?c WHERE { resource:Q12078 property:P1995 ?c . ?c rdf:type ontology:Q1047113 }
oncology
The oncology is the medical specality concerned with that disease
oncology
action filter_type
action find
entity cancer
relation medical specialty
type special field
['Alan Fersht', 'medical specialty', {'concept': 'special field'}] ['May Edward Chinn', 'medical specialty', {'concept': 'special field'}] ['Gabriel Rabinovich', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?c WHERE { resource:cancer property:medical_specialty ?c . ?c rdf:type ontology:special_field }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P689
Q4936952 Q15989253 Q12136
USER
Which diseases can afflict exactly 1 anatomical structures and parts ?
(c(Q12136),P689,c(Q4936952)|c(Q15989253))
action equal
action union
action find_tuple_counts
relation P689
type Q12136
type Q4936952
action find_tuple_counts
relation P689
type Q12136
type Q15989253
value 1
[{'concept': 'Q12136'}, 'P689', [{'concept': 'Q4936952'}, {'concept': 'Q15989253'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) ?g WHERE { { ?g property:P689 ?s . ?g rdf:type ontology:Q12136 . ?s rdf:type ontology:Q4936952 } UNION { ?g rdf:type ontology:Q12136 . ?s rdf:type ontology:Q15989253 . ?g property:P689 ?s } } GROUP BY ?g } . FILTER ( ?c = 1 ) }
action equal
action union
action find_tuple_counts
relation afflicts
type disease
type anatomical structure
action find_tuple_counts
relation afflicts
type disease
type part
value 1
[{'concept': 'disease'}, 'afflicts', [{'concept': 'anatomical structure'}, {'concept': 'part'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) ?g WHERE { { ?g property:afflicts ?s . ?g rdf:type ontology:disease . ?s rdf:type ontology:anatomical_structure } UNION { ?g rdf:type ontology:disease . ?s rdf:type ontology:part . ?g property:afflicts ?s } } GROUP BY ?g } . FILTER ( ?c = 1 ) }
[]
anatomical structure part disease
Q17083148 Q3281417 Q5062121
SYSTEM
central nervous system cavernous hemangioma, skeletal disease, central nervous system viral disease
Q3281417 Q17083148 Q5062121 Q6844287
(c(Q12136),P689,c(Q4936952)|c(Q15989253))
action equal
action union
action find_tuple_counts
relation P689
type Q12136
type Q4936952
action find_tuple_counts
relation P689
type Q12136
type Q15989253
value 1
[ANSWERS] can afflict exactly 1 anatomical structures and parts
[{'concept': 'Q12136'}, 'P689', [{'concept': 'Q4936952'}, {'concept': 'Q15989253'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) ?g WHERE { { ?g property:P689 ?s . ?g rdf:type ontology:Q12136 . ?s rdf:type ontology:Q4936952 } UNION { ?g rdf:type ontology:Q12136 . ?s rdf:type ontology:Q15989253 . ?g property:P689 ?s } } GROUP BY ?g } . FILTER ( ?c = 1 ) }
skeletal disease central nervous system cavernous hemangioma central nervous system viral disease migraine-associated vertigo
Central nervous system cavernous hemangioma, skeletal disease and central nervous system viral disease can afflict exactly 1 anatomical structures and parts
central nervous system cavernous hemangioma skeletal disease central nervous system viral disease
action equal
action union
action find_tuple_counts
relation afflicts
type disease
type anatomical structure
action find_tuple_counts
relation afflicts
type disease
type part
value 1
[{'concept': 'disease'}, 'afflicts', [{'concept': 'anatomical structure'}, {'concept': 'part'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) ?g WHERE { { ?g property:afflicts ?s . ?g rdf:type ontology:disease . ?s rdf:type ontology:anatomical_structure } UNION { ?g rdf:type ontology:disease . ?s rdf:type ontology:part . ?g property:afflicts ?s } } GROUP BY ?g } . FILTER ( ?c = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P828
Q10675206 Q12136
USER
Which ingredients are the underlying cause of max number of diseases ?
(c(Q12136),P828,Q34956)
action argmax
action find_reverse_tuple_counts
relation P828
type Q10675206
type Q12136
[{'concept': 'Q12136'}, 'P828', 'Q34956']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?i ) { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P828 ?a . ?k rdf:type ontology:Q12136 . ?a rdf:type ontology:Q10675206 } GROUP BY ?a } } . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?z ) WHERE { ?u property:P828 ?y . ?y rdf:type ontology:Q10675206 . ?u rdf:type ontology:Q12136 } GROUP BY ?y } . FILTER ( ?z = ?i ) }
action argmax
action find_reverse_tuple_counts
relation has cause
type ingredient
type disease
[{'concept': 'disease'}, 'has cause', 'vitamin']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?i ) { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:has_cause ?a . ?k rdf:type ontology:disease . ?a rdf:type ontology:ingredient } GROUP BY ?a } } . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?z ) WHERE { ?u property:has_cause ?y . ?y rdf:type ontology:ingredient . ?u rdf:type ontology:disease } GROUP BY ?y } . FILTER ( ?z = ?i ) }
[]
ingredient disease
Q21546392
SYSTEM
garlic
Q21546392
(c(Q12136),P828,Q34956)
action argmax
action find_reverse_tuple_counts
relation P828
type Q10675206
type Q12136
[ANSWER] is the underlying cause of max number of diseases
[{'concept': 'Q12136'}, 'P828', 'Q34956']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?i ) { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P828 ?a . ?k rdf:type ontology:Q12136 . ?a rdf:type ontology:Q10675206 } GROUP BY ?a } } . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?z ) WHERE { ?u property:P828 ?y . ?y rdf:type ontology:Q10675206 . ?u rdf:type ontology:Q12136 } GROUP BY ?y } . FILTER ( ?z = ?i ) }
garlic
Garlic is the underlying cause of max number of diseases
garlic
action argmax
action find_reverse_tuple_counts
relation has cause
type ingredient
type disease
[{'concept': 'disease'}, 'has cause', 'vitamin']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?i ) { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:has_cause ?a . ?k rdf:type ontology:disease . ?a rdf:type ontology:ingredient } GROUP BY ?a } } . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?z ) WHERE { ?u property:has_cause ?y . ?y rdf:type ontology:ingredient . ?u rdf:type ontology:disease } GROUP BY ?y } . FILTER ( ?z = ?i ) }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q21546392 Q3232749
P1542
Q12136
USER
Is garlic allergy caused by garlic ?
(Q21546392,P1542,Q3232749)
action is_in
entity Q3232749
action find
entity Q21546392
relation P1542
['Q21546392', 'P1542', 'Q3232749']
ASK WHERE { resource:Q21546392 property:P1542 resource:Q3232749 }
garlic garlic allergy
action is_in
entity garlic allergy
action find
entity garlic
relation cause of
['garlic', 'cause of', 'garlic allergy']
ASK WHERE { resource:garlic property:cause_of resource:garlic_allergy }
[]
disease
SYSTEM
YES
(Q21546392,P1542,Q3232749)
action is_in
entity Q3232749
action find
entity Q21546392
relation P1542
[ANSWER]
['Q21546392', 'P1542', 'Q3232749']
ASK WHERE { resource:Q21546392 property:P1542 resource:Q3232749 }
Yes
action is_in
entity garlic allergy
action find
entity garlic
relation cause of
['garlic', 'cause of', 'garlic allergy']
ASK WHERE { resource:garlic property:cause_of resource:garlic_allergy }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3281417 Q7881
P689
Q4936952
USER
Is skeleton afflicted by skeletal disease ?
(Q3281417,P689,Q7881)
action is_in
entity Q7881
action find
entity Q3281417
relation P689
['Q3281417', 'P689', 'Q7881']
ASK WHERE { resource:Q3281417 property:P689 resource:Q7881 }
skeletal disease skeleton
action is_in
entity skeleton
action find
entity skeletal disease
relation afflicts
['skeletal disease', 'afflicts', 'skeleton']
ASK WHERE { resource:skeletal_disease property:afflicts resource:skeleton }
[]
anatomical structure
SYSTEM
YES
(Q3281417,P689,Q7881)
action is_in
entity Q7881
action find
entity Q3281417
relation P689
[ANSWER]
['Q3281417', 'P689', 'Q7881']
ASK WHERE { resource:Q3281417 property:P689 resource:Q7881 }
Yes
action is_in
entity skeleton
action find
entity skeletal disease
relation afflicts
['skeletal disease', 'afflicts', 'skeleton']
ASK WHERE { resource:skeletal_disease property:afflicts resource:skeleton }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1424706
P780
Q1441305 Q12136 Q12136
USER
How many diseases does presence of around the same number of medical signs or diseases indicate as Opsoclonus myoclonus syndrome ?
(c(Q12136),P780,c(Q1441305)|c(Q12136))
action count
action approx
action union
action find_tuple_counts
relation P780
type Q12136
type Q1441305
action find_tuple_counts
relation P780
type Q12136
type Q12136
action count
action filter_multi_types
action find
entity Q1424706
relation P780
type Q1441305
type Q12136
[{'concept': 'Q12136'}, 'P780', [{'concept': 'Q1441305'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { resource:Q1424706 property:P780 ?u . { { ?u rdf:type ontology:Q1441305 } UNION { ?u rdf:type ontology:Q12136 } } } } . FILTER ( ?f = ?z ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?d WHERE { { ?d property:P780 ?y . ?y rdf:type ontology:Q1441305 . ?d rdf:type ontology:Q12136 } UNION { ?d property:P780 ?y . ?d rdf:type ontology:Q12136 . ?y rdf:type ontology:Q12136 } } GROUP BY ?d } }
Opsoclonus myoclonus syndrome
action count
action approx
action union
action find_tuple_counts
relation symptoms
type disease
type medical sign
action find_tuple_counts
relation symptoms
type disease
type disease
action count
action filter_multi_types
action find
entity Opsoclonus myoclonus syndrome
relation symptoms
type medical sign
type disease
[{'concept': 'disease'}, 'symptoms', [{'concept': 'medical sign'}, {'concept': 'disease'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { resource:Opsoclonus_myoclonus_syndrome property:symptoms ?u . { { ?u rdf:type ontology:medical_sign } UNION { ?u rdf:type ontology:disease } } } } . FILTER ( ?f = ?z ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?d WHERE { { ?d property:symptoms ?y . ?y rdf:type ontology:medical_sign . ?d rdf:type ontology:disease } UNION { ?d property:symptoms ?y . ?d rdf:type ontology:disease . ?y rdf:type ontology:disease } } GROUP BY ?d } }
[]
medical sign disease disease
SYSTEM
24
Q1857905 Q285787 Q1778287 Q167844 Q17122962 Q1424706 Q727008 Q6056727 Q572201 Q1148337 Q17123258 Q2996866 Q19850514 Q18967299 Q18411792 Q1559250 Q190454 Q1403928 Q18019453 Q12859193 Q3508612 Q6139748 Q277254 Q2866610
(c(Q12136),P780,c(Q1441305)|c(Q12136))
action count
action approx
action union
action find_tuple_counts
relation P780
type Q12136
type Q1441305
action find_tuple_counts
relation P780
type Q12136
type Q12136
action count
action filter_multi_types
action find
entity Q1424706
relation P780
type Q1441305
type Q12136
[ANSWER]
[{'concept': 'Q12136'}, 'P780', [{'concept': 'Q1441305'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { resource:Q1424706 property:P780 ?u . { { ?u rdf:type ontology:Q1441305 } UNION { ?u rdf:type ontology:Q12136 } } } } . FILTER ( ?f = ?z ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?d WHERE { { ?d property:P780 ?y . ?y rdf:type ontology:Q1441305 . ?d rdf:type ontology:Q12136 } UNION { ?d property:P780 ?y . ?d rdf:type ontology:Q12136 . ?y rdf:type ontology:Q12136 } } GROUP BY ?d } }
cyclic vomiting syndrome Amaurosis Waldenström's macroglobulinemia conjunctivitis Hypoplastic tibiae-postaxial polydactyly syndrome Opsoclonus myoclonus syndrome McCune–Albright syndrome Intersection syndrome Autophobia hepatocellular carcinoma fox mange human coprophagia Olive Quick Decline Syndrome fusion with defective stereopsis Nathalie syndrome Peters plus syndrome Cerebral salt-wasting syndrome Ketotic hypoglycemia Polydactyly of a triphalangeal thumb Nightmare disorder sleep hypoventilation syndrome Progeroid syndrome Adams–Stokes syndrome hyposalivation
24
action count
action approx
action union
action find_tuple_counts
relation symptoms
type disease
type medical sign
action find_tuple_counts
relation symptoms
type disease
type disease
action count
action filter_multi_types
action find
entity Opsoclonus myoclonus syndrome
relation symptoms
type medical sign
type disease
[{'concept': 'disease'}, 'symptoms', [{'concept': 'medical sign'}, {'concept': 'disease'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { resource:Opsoclonus_myoclonus_syndrome property:symptoms ?u . { { ?u rdf:type ontology:medical_sign } UNION { ?u rdf:type ontology:disease } } } } . FILTER ( ?f = ?z ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?d WHERE { { ?d property:symptoms ?y . ?y rdf:type ontology:medical_sign . ?d rdf:type ontology:disease } UNION { ?d property:symptoms ?y . ?d rdf:type ontology:disease . ?y rdf:type ontology:disease } } GROUP BY ?d } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1148337
P780
Q1441305 Q12136 Q12136
USER
And how about hepatocellular carcinoma?
(c(Q12136),P780,c(Q1441305)|c(Q12136))
action count
action approx
action union
action find_tuple_counts
relation P780
type Q12136
type Q1441305
action find_tuple_counts
relation P780
type Q12136
type Q12136
action count
action filter_multi_types
action find
entity Q1148337
relation P780
type Q1441305
type Q12136
[{'concept': 'Q12136'}, 'P780', [{'concept': 'Q1441305'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?o WHERE { VALUES ( ?q ) { ( ontology:Q12136 ) ( ontology:Q1441305 ) } . ?c rdf:type ?q } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:Q1148337 property:P780 ?t . { ?t rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1441305 ) ( ontology:Q12136 ) } } } } . FILTER ( ?r = ?i ) }
hepatocellular carcinoma
action count
action approx
action union
action find_tuple_counts
relation symptoms
type disease
type medical sign
action find_tuple_counts
relation symptoms
type disease
type disease
action count
action filter_multi_types
action find
entity hepatocellular carcinoma
relation symptoms
type medical sign
type disease
[{'concept': 'disease'}, 'symptoms', [{'concept': 'medical sign'}, {'concept': 'disease'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?o WHERE { VALUES ( ?q ) { ( ontology:disease ) ( ontology:medical_sign ) } . ?c rdf:type ?q } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:hepatocellular_carcinoma property:symptoms ?t . { ?t rdf:type ?f . VALUES ( ?f ) { ( ontology:medical_sign ) ( ontology:disease ) } } } } . FILTER ( ?r = ?i ) }
[]
medical sign disease disease
SYSTEM
25
Q1857905 Q285787 Q1778287 Q167844 Q17122962 Q1424706 Q727008 Q6056727 Q572201 Q1148337 Q17123258 Q2996866 Q19850514 Q18967299 Q18411792 Q840143 Q1559250 Q190454 Q1403928 Q18019453 Q12859193 Q3508612 Q6139748 Q277254 Q2866610
(c(Q12136),P780,c(Q1441305)|c(Q12136))
action count
action approx
action union
action find_tuple_counts
relation P780
type Q12136
type Q1441305
action find_tuple_counts
relation P780
type Q12136
type Q12136
action count
action filter_multi_types
action find
entity Q1148337
relation P780
type Q1441305
type Q12136
[ANSWER]
[{'concept': 'Q12136'}, 'P780', [{'concept': 'Q1441305'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?o WHERE { VALUES ( ?q ) { ( ontology:Q12136 ) ( ontology:Q1441305 ) } . ?c rdf:type ?q } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:Q1148337 property:P780 ?t . { ?t rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1441305 ) ( ontology:Q12136 ) } } } } . FILTER ( ?r = ?i ) }
cyclic vomiting syndrome Amaurosis Waldenström's macroglobulinemia conjunctivitis Hypoplastic tibiae-postaxial polydactyly syndrome Opsoclonus myoclonus syndrome McCune–Albright syndrome Intersection syndrome Autophobia hepatocellular carcinoma fox mange human coprophagia Olive Quick Decline Syndrome fusion with defective stereopsis Nathalie syndrome streptococcal pharyngitis Peters plus syndrome Cerebral salt-wasting syndrome Ketotic hypoglycemia Polydactyly of a triphalangeal thumb Nightmare disorder sleep hypoventilation syndrome Progeroid syndrome Adams–Stokes syndrome hyposalivation
25
action count
action approx
action union
action find_tuple_counts
relation symptoms
type disease
type medical sign
action find_tuple_counts
relation symptoms
type disease
type disease
action count
action filter_multi_types
action find
entity hepatocellular carcinoma
relation symptoms
type medical sign
type disease
[{'concept': 'disease'}, 'symptoms', [{'concept': 'medical sign'}, {'concept': 'disease'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?o WHERE { VALUES ( ?q ) { ( ontology:disease ) ( ontology:medical_sign ) } . ?c rdf:type ?q } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:hepatocellular_carcinoma property:symptoms ?t . { ?t rdf:type ?f . VALUES ( ?f ) { ( ontology:medical_sign ) ( ontology:disease ) } } } } . FILTER ( ?r = ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1432914
P1056
Q10675206 Q83405
USER
Which factories makes approximately the same number of ingredients as Rörstrand ?
(c(Q83405),P1056,c(Q10675206))
action approx
action find_tuple_counts
relation P1056
type Q83405
type Q10675206
action count
action filter_type
action find
entity Q1432914
relation P1056
type Q83405
[{'concept': 'Q83405'}, 'P1056', {'concept': 'Q10675206'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?o ) AS ?f ) WHERE { ?l property:P1056 ?o . ?l rdf:type ontology:Q83405 . ?o rdf:type ontology:Q10675206 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b rdf:type ontology:Q83405 . resource:Q1432914 property:P1056 ?b } } . FILTER ( ?f = ?d ) }
Rörstrand
action approx
action find_tuple_counts
relation product
type factory
type ingredient
action count
action filter_type
action find
entity Rörstrand
relation product
type factory
[{'concept': 'factory'}, 'product', {'concept': 'ingredient'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?o ) AS ?f ) WHERE { ?l property:product ?o . ?l rdf:type ontology:factory . ?o rdf:type ontology:ingredient } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b rdf:type ontology:factory . resource:Rörstrand property:product ?b } } . FILTER ( ?f = ?d ) }
[]
ingredient factory
Q1069415 Q732312 Q20730182
SYSTEM
Chemische Fabrik Gebrüder Gravenhorst, Gobelins Manufactory, Zvyozdny
Q732312 Q20730182 Q1432914 Q20730184 Q20730183 Q21585414 Q3398265 Q5025296 Q4371256 Q20782679 Q1069415 Q1193204 Q4996211
(c(Q83405),P1056,c(Q10675206))
action approx
action find_tuple_counts
relation P1056
type Q83405
type Q10675206
action count
action filter_type
action find
entity Q1432914
relation P1056
type Q83405
[ANSWERS] make approximately the same number of ingredients as Rörstrand
[{'concept': 'Q83405'}, 'P1056', {'concept': 'Q10675206'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?o ) AS ?f ) WHERE { ?l property:P1056 ?o . ?l rdf:type ontology:Q83405 . ?o rdf:type ontology:Q10675206 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b rdf:type ontology:Q83405 . resource:Q1432914 property:P1056 ?b } } . FILTER ( ?f = ?d ) }
Gobelins Manufactory Zvyozdny Rörstrand Khlebozavod 9 Kolmenskoe The Foundery National Mint of Jubia Cambrian Pottery Polish Mint Cherkozovo Chemische Fabrik Gebrüder Gravenhorst Springfield Armory Bulgarian Mint
Chemische Fabrik Gebrüder Gravenhorst, Gobelins Manufactory and Zvyozdny make approximately the same number of ingredients as Rörstrand
Chemische Fabrik Gebrüder Gravenhorst Gobelins Manufactory Zvyozdny
action approx
action find_tuple_counts
relation product
type factory
type ingredient
action count
action filter_type
action find
entity Rörstrand
relation product
type factory
[{'concept': 'factory'}, 'product', {'concept': 'ingredient'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?o ) AS ?f ) WHERE { ?l property:product ?o . ?l rdf:type ontology:factory . ?o rdf:type ontology:ingredient } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b rdf:type ontology:factory . resource:Rörstrand property:product ?b } } . FILTER ( ?f = ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q5025296
P1056
Q10675206 Q83405
USER
And what about Cambrian Pottery?
(c(Q83405),P1056,c(Q10675206))
action approx
action find_tuple_counts
relation P1056
type Q83405
type Q10675206
action count
action filter_type
action find
entity Q5025296
relation P1056
type Q83405
[{'concept': 'Q83405'}, 'P1056', {'concept': 'Q10675206'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?c = ?y ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Q5025296 property:P1056 ?d . ?d rdf:type ontology:Q83405 } } . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?c ) WHERE { ?f property:P1056 ?a . ?a rdf:type ontology:Q10675206 . ?f rdf:type ontology:Q83405 } GROUP BY ?f } }
Cambrian Pottery
action approx
action find_tuple_counts
relation product
type factory
type ingredient
action count
action filter_type
action find
entity Cambrian Pottery
relation product
type factory
[{'concept': 'factory'}, 'product', {'concept': 'ingredient'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?c = ?y ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Cambrian_Pottery property:product ?d . ?d rdf:type ontology:factory } } . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?c ) WHERE { ?f property:product ?a . ?a rdf:type ontology:ingredient . ?f rdf:type ontology:factory } GROUP BY ?f } }
[]
ingredient factory
Q1069415 Q732312 Q20730182
SYSTEM
Chemische Fabrik Gebrüder Gravenhorst, Gobelins Manufactory, Zvyozdny
Q732312 Q20730182 Q1432914 Q20730184 Q20730183 Q21585414 Q3398265 Q5025296 Q4371256 Q20782679 Q1069415 Q1193204 Q4996211
(c(Q83405),P1056,c(Q10675206))
action approx
action find_tuple_counts
relation P1056
type Q83405
type Q10675206
action count
action filter_type
action find
entity Q5025296
relation P1056
type Q83405
[ANSWERS]
[{'concept': 'Q83405'}, 'P1056', {'concept': 'Q10675206'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?c = ?y ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Q5025296 property:P1056 ?d . ?d rdf:type ontology:Q83405 } } . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?c ) WHERE { ?f property:P1056 ?a . ?a rdf:type ontology:Q10675206 . ?f rdf:type ontology:Q83405 } GROUP BY ?f } }
Gobelins Manufactory Zvyozdny Rörstrand Khlebozavod 9 Kolmenskoe The Foundery National Mint of Jubia Cambrian Pottery Polish Mint Cherkozovo Chemische Fabrik Gebrüder Gravenhorst Springfield Armory Bulgarian Mint
Chemische Fabrik Gebrüder Gravenhorst Gobelins Manufactory Zvyozdny
action approx
action find_tuple_counts
relation product
type factory
type ingredient
action count
action filter_type
action find
entity Cambrian Pottery
relation product
type factory
[{'concept': 'factory'}, 'product', {'concept': 'ingredient'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?c = ?y ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Cambrian_Pottery property:product ?d . ?d rdf:type ontology:factory } } . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?c ) WHERE { ?f property:product ?a . ?a rdf:type ontology:ingredient . ?f rdf:type ontology:factory } GROUP BY ?f } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1069415
P112
Q502895
USER
Which people founded that factory ?
(Q1069415,P112,c(Q502895))
action filter_type
action find
entity Q1069415
relation P112
type Q502895
['Q1069415', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q1069415 property:P112 ?b . ?b rdf:type ontology:Q502895 }
Chemische Fabrik Gebrüder Gravenhorst
action filter_type
action find
entity Chemische Fabrik Gebrüder Gravenhorst
relation founder
type common name
['Chemische Fabrik Gebrüder Gravenhorst', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Chemische_Fabrik_Gebrüder_Gravenhorst property:founder ?b . ?b rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q20730182
SYSTEM
Did you mean Zvyozdny ?
Q1069415 Q732312 Q20730182
(Q1069415,P112,c(Q502895)) (Q732312,P112,c(Q502895)) (Q20730182,P112,c(Q502895))
[ANSWER]
['Q1069415', 'P112', {'concept': 'Q502895'}] ['Q732312', 'P112', {'concept': 'Q502895'}] ['Q20730182', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q1069415 property:P112 ?b . ?b rdf:type ontology:Q502895 }
Chemische Fabrik Gebrüder Gravenhorst Gobelins Manufactory Zvyozdny
Did you mean Zvyozdny ?
Zvyozdny
['Chemische Fabrik Gebrüder Gravenhorst', 'founder', {'concept': 'common name'}] ['Gobelins Manufactory', 'founder', {'concept': 'common name'}] ['Zvyozdny', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Chemische_Fabrik_Gebrüder_Gravenhorst property:founder ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Chemische Fabrik Gebrüder Gravenhorst. Could you tell me the answer for that?
(Q1069415,P112,c(Q502895))
Q1069415
['Q1069415', 'P112', {'concept': 'Q502895'}]
['Chemische Fabrik Gebrüder Gravenhorst', 'founder', {'concept': 'common name'}]
[]
Q1694403 Q1085250
SYSTEM
Johann Heinrich Gravenhorst, Christoph Julius Gravenhorst
Q1694403 Q1085250
(Q1069415,P112,c(Q502895))
action filter_type
action find
entity Q1069415
relation P112
type Q502895
[ANSWERS] founded that factory
['Q1069415', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q1069415 property:P112 ?b . ?b rdf:type ontology:Q502895 }
Johann Heinrich Gravenhorst Christoph Julius Gravenhorst
Johann Heinrich Gravenhorst and Christoph Julius Gravenhorst founded that factory
Johann Heinrich Gravenhorst Christoph Julius Gravenhorst
action filter_type
action find
entity Chemische Fabrik Gebrüder Gravenhorst
relation founder
type common name
['Chemische Fabrik Gebrüder Gravenhorst', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Chemische_Fabrik_Gebrüder_Gravenhorst property:founder ?b . ?b rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3238253
P112
Q83405
USER
Were Lithuanian Mint founded by those people ?
(Q3238253,P112,Q1694403) (Q3238253,P112,Q1085250)
action is_in
entity prev_answer
action find
entity Q3238253
relation P112
['Q3238253', 'P112', 'Q1694403'] ['Q3238253', 'P112', 'Q1085250']
ASK WHERE { resource:Q3238253 property:P112 ?q . VALUES ( ?q ) { ( resource:Q1694403 ) ( resource:Q1085250 ) } }
Lithuanian Mint
action is_in
entity prev_answer
action find
entity Lithuanian Mint
relation founder
['Lithuanian Mint', 'founder', 'Johann Heinrich Gravenhorst'] ['Lithuanian Mint', 'founder', 'Christoph Julius Gravenhorst']
ASK WHERE { resource:Lithuanian_Mint property:founder ?q . VALUES ( ?q ) { ( resource:Johann_Heinrich_Gravenhorst ) ( resource:Christoph_Julius_Gravenhorst ) } }
[]
factory
SYSTEM
NO
(Q3238253,P112,Q1694403) (Q3238253,P112,Q1085250)
action is_in
entity prev_answer
action find
entity Q3238253
relation P112
[ANSWER]
['Q3238253', 'P112', 'Q1694403'] ['Q3238253', 'P112', 'Q1085250']
ASK WHERE { resource:Q3238253 property:P112 ?q . VALUES ( ?q ) { ( resource:Q1694403 ) ( resource:Q1085250 ) } }
No
action is_in
entity prev_answer
action find
entity Lithuanian Mint
relation founder
['Lithuanian Mint', 'founder', 'Johann Heinrich Gravenhorst'] ['Lithuanian Mint', 'founder', 'Christoph Julius Gravenhorst']
ASK WHERE { resource:Lithuanian_Mint property:founder ?q . VALUES ( ?q ) { ( resource:Johann_Heinrich_Gravenhorst ) ( resource:Christoph_Julius_Gravenhorst ) } }
[]