Simple Question (Direct)
Simple Question
Q65564
P17
Q15617994
USER
Which administrative territory is Trin a part of ?
(Q65564,P17,c(Q15617994))
action filter_type
action find
entity Q65564
relation P17
type Q15617994
['Q65564', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q65564 property:P17 ?a }
Trin
action filter_type
action find
entity Trin
relation country
type designation for an administrative territorial entity
['Trin', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Trin property:country ?a }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(Q65564,P17,c(Q15617994))
action filter_type
action find
entity Q65564
relation P17
type Q15617994
Which administrative territory is Trin a part of
['Q65564', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q65564 property:P17 ?a }
Switzerland
Which administrative territory is Trin a part of
Switzerland
action filter_type
action find
entity Trin
relation country
type designation for an administrative territorial entity
['Trin', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Trin property:country ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q39
P85
Q484692
USER
Which hymn is the anthem for that administrative territory ?
(Q39,P85,c(Q484692))
action filter_type
action find
entity Q39
relation P85
type Q484692
['Q39', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q484692 . resource:Q39 property:P85 ?x }
Switzerland
action filter_type
action find
entity Switzerland
relation anthem
type hymn
['Switzerland', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:hymn . resource:Switzerland property:anthem ?x }
[]
hymn
Q182536
SYSTEM
Swiss Psalm
Q182536
(Q39,P85,c(Q484692))
action filter_type
action find
entity Q39
relation P85
type Q484692
[ANSWER] is the anthem for that administrative territory
['Q39', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q484692 . resource:Q39 property:P85 ?x }
Swiss Psalm
Swiss Psalm is the anthem for that administrative territory
Swiss Psalm
action filter_type
action find
entity Switzerland
relation anthem
type hymn
['Switzerland', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:hymn . resource:Switzerland property:anthem ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q182536
P86
Q502895
USER
Who was that hymn composed by ?
(Q182536,P86,c(Q502895))
action filter_type
action find
entity Q182536
relation P86
type Q502895
['Q182536', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q182536 property:P86 ?n . ?n rdf:type ontology:Q502895 }
Swiss Psalm
action filter_type
action find
entity Swiss Psalm
relation composer
type common name
['Swiss Psalm', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Swiss_Psalm property:composer ?n . ?n rdf:type ontology:common_name }
[]
common name
Q667651
SYSTEM
Alberich Zwyssig
Q667651
(Q182536,P86,c(Q502895))
action filter_type
action find
entity Q182536
relation P86
type Q502895
By that hymn was composed by [ANSWER]
['Q182536', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q182536 property:P86 ?n . ?n rdf:type ontology:Q502895 }
Alberich Zwyssig
By that hymn was composed by Alberich Zwyssig
Alberich Zwyssig
action filter_type
action find
entity Swiss Psalm
relation composer
type common name
['Swiss Psalm', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Swiss_Psalm property:composer ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q39
P36
Q56061
USER
What is the capital of Switzerland ?
(Q39,P36,c(Q56061))
action filter_type
action find
entity Q39
relation P36
type Q56061
['Q39', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q39 property:P36 ?i . ?i rdf:type ontology:Q56061 }
Switzerland
action filter_type
action find
entity Switzerland
relation capital
type administrative territorial entity
['Switzerland', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Switzerland property:capital ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q70
SYSTEM
Bern
Q70
(Q39,P36,c(Q56061))
action filter_type
action find
entity Q39
relation P36
type Q56061
The capital of Switzerland is [ANSWER]
['Q39', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q39 property:P36 ?i . ?i rdf:type ontology:Q56061 }
Bern
The capital of Switzerland is Bern
Bern
action filter_type
action find
entity Switzerland
relation capital
type administrative territorial entity
['Switzerland', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Switzerland property:capital ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q70
P931
Q62447
USER
Which city does that administrative territory serve ?
(c(Q62447),P931,Q70)
action filter_type
action find_reverse
entity Q70
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q70']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q62447 . ?v property:P931 resource:Q70 }
Bern
action filter_type
action find_reverse
entity Bern
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Bern']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:aerodrome . ?v property:place_served_by_airport resource:Bern }
[]
aerodrome
Q619845
SYSTEM
Bern Airport
Q619845
(c(Q62447),P931,Q70)
action filter_type
action find_reverse
entity Q70
relation P931
type Q62447
That administrative territory serves [ANSWER]
[{'concept': 'Q62447'}, 'P931', 'Q70']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q62447 . ?v property:P931 resource:Q70 }
Bern Airport
That administrative territory serves Bern Airport
Bern Airport
action filter_type
action find_reverse
entity Bern
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Bern']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:aerodrome . ?v property:place_served_by_airport resource:Bern }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1444
Q62447 Q3839081
USER
Which disasters finally halts at approximately 2 aerodromes ?
(c(Q3839081),P1444,c(Q62447))
action approx
action find_tuple_counts
relation P1444
type Q3839081
type Q62447
value 2
[{'concept': 'Q3839081'}, 'P1444', {'concept': 'Q62447'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?d ) AS ?f ) WHERE { ?y property:P1444 ?d . ?y rdf:type ontology:Q3839081 . ?d rdf:type ontology:Q62447 } GROUP BY ?y } . FILTER ( ?f = 2 ) }
action approx
action find_tuple_counts
relation destination point
type disaster
type aerodrome
value 2
[{'concept': 'disaster'}, 'destination point', {'concept': 'aerodrome'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?d ) AS ?f ) WHERE { ?y property:destination_point ?d . ?y rdf:type ontology:disaster . ?d rdf:type ontology:aerodrome } GROUP BY ?y } . FILTER ( ?f = 2 ) }
[]
aerodrome disaster
Q22450721
SYSTEM
Daallo Airlines Flight 3159
Q22450721
(c(Q3839081),P1444,c(Q62447))
action approx
action find_tuple_counts
relation P1444
type Q3839081
type Q62447
value 2
[ANSWER] finally halts at approximately 2 aerodromes
[{'concept': 'Q3839081'}, 'P1444', {'concept': 'Q62447'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?d ) AS ?f ) WHERE { ?y property:P1444 ?d . ?y rdf:type ontology:Q3839081 . ?d rdf:type ontology:Q62447 } GROUP BY ?y } . FILTER ( ?f = 2 ) }
Daallo Airlines Flight 3159
Daallo Airlines Flight 3159 finally halts at approximately 2 aerodromes
Daallo Airlines Flight 3159
action approx
action find_tuple_counts
relation destination point
type disaster
type aerodrome
value 2
[{'concept': 'disaster'}, 'destination point', {'concept': 'aerodrome'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?d ) AS ?f ) WHERE { ?y property:destination_point ?d . ?y rdf:type ontology:disaster . ?d rdf:type ontology:aerodrome } GROUP BY ?y } . FILTER ( ?f = 2 ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q22450721 Q1045
P17
Q15617994
USER
Is that disaster a part of Somalia ?
(Q22450721,P17,Q1045)
action is_in
entity Q1045
action find
entity Q22450721
relation P17
['Q22450721', 'P17', 'Q1045']
ASK WHERE { resource:Q22450721 property:P17 resource:Q1045 }
Daallo Airlines Flight 3159 Somalia
action is_in
entity Somalia
action find
entity Daallo Airlines Flight 3159
relation country
['Daallo Airlines Flight 3159', 'country', 'Somalia']
ASK WHERE { resource:Daallo_Airlines_Flight_3159 property:country resource:Somalia }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q22450721,P17,Q1045)
action is_in
entity Q1045
action find
entity Q22450721
relation P17
[ANSWER]
['Q22450721', 'P17', 'Q1045']
ASK WHERE { resource:Q22450721 property:P17 resource:Q1045 }
Yes
action is_in
entity Somalia
action find
entity Daallo Airlines Flight 3159
relation country
['Daallo Airlines Flight 3159', 'country', 'Somalia']
ASK WHERE { resource:Daallo_Airlines_Flight_3159 property:country resource:Somalia }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6129941 Q22450721
P27 P17
Q15617994
USER
Which administrative territories are Daallo Airlines Flight 3159 located in or are James Bolabiu an inhabitant of ?
OR((Q22450721,P17,c(Q15617994)), (Q6129941,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q22450721
relation P17
action find
entity Q6129941
relation P27
type Q15617994
{'OR': [['Q22450721', 'P17', {'concept': 'Q15617994'}], ['Q6129941', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q22450721 property:P17 ?i } UNION { resource:Q6129941 property:P27 ?i } } . ?i rdf:type ontology:Q15617994 }
James Bolabiu Daallo Airlines Flight 3159
action filter_type
action union
action find
entity Daallo Airlines Flight 3159
relation country
action find
entity James Bolabiu
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Daallo Airlines Flight 3159', 'country', {'concept': 'designation for an administrative territorial entity'}], ['James Bolabiu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Daallo_Airlines_Flight_3159 property:country ?i } UNION { resource:James_Bolabiu property:country_of_citizenship ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q712 Q1045
SYSTEM
Fiji, Somalia
Q712 Q1045
OR((Q22450721,P17,c(Q15617994)), (Q6129941,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q22450721
relation P17
action find
entity Q6129941
relation P27
type Q15617994
[ANSWERS] are Daallo Airlines Flight 3159 located in or are James Bolabiu an inhabitant of
{'OR': [['Q22450721', 'P17', {'concept': 'Q15617994'}], ['Q6129941', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q22450721 property:P17 ?i } UNION { resource:Q6129941 property:P27 ?i } } . ?i rdf:type ontology:Q15617994 }
Fiji Somalia
Fiji and Somalia are Daallo Airlines Flight 3159 located in or are James Bolabiu an inhabitant of
Fiji Somalia
action filter_type
action union
action find
entity Daallo Airlines Flight 3159
relation country
action find
entity James Bolabiu
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Daallo Airlines Flight 3159', 'country', {'concept': 'designation for an administrative territorial entity'}], ['James Bolabiu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Daallo_Airlines_Flight_3159 property:country ?i } UNION { resource:James_Bolabiu property:country_of_citizenship ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories holds diplomatic relationship with atmost 78 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 78
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?l ) WHERE { ?v property:P530 ?g . ?v rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?l <= 78 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 78
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?l ) WHERE { ?v property:diplomatic_relation ?g . ?v rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?l <= 78 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 78
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?l ) WHERE { ?v property:P530 ?g . ?v rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?l <= 78 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 78
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?l ) WHERE { ?v property:diplomatic_relation ?g . ?v rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?l <= 78 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P121
Q197 Q20027953 Q3839081
USER
Which disasters are responsible for management of max number of airplanes or aircraft functional classes ?
(c(Q3839081),P121,c(Q197)|c(Q20027953))
action argmax
action union
action find_tuple_counts
relation P121
type Q3839081
type Q197
action find_tuple_counts
relation P121
type Q3839081
type Q20027953
[{'concept': 'Q3839081'}, 'P121', [{'concept': 'Q197'}, {'concept': 'Q20027953'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?z WHERE { { ?z property:P121 ?k . ?z rdf:type ontology:Q3839081 . ?k rdf:type ontology:Q197 } UNION { ?z property:P121 ?k . ?z rdf:type ontology:Q3839081 . ?k rdf:type ontology:Q20027953 } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) ?d WHERE { { ?d rdf:type ontology:Q3839081 . ?h rdf:type ontology:Q197 . ?d property:P121 ?h } UNION { ?d property:P121 ?h . ?d rdf:type ontology:Q3839081 . ?h rdf:type ontology:Q20027953 } } GROUP BY ?d } . FILTER ( ?t = ?y ) }
action argmax
action union
action find_tuple_counts
relation item operated
type disaster
type airplane
action find_tuple_counts
relation item operated
type disaster
type aircraft functional class
[{'concept': 'disaster'}, 'item operated', [{'concept': 'airplane'}, {'concept': 'aircraft functional class'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?z WHERE { { ?z property:item_operated ?k . ?z rdf:type ontology:disaster . ?k rdf:type ontology:airplane } UNION { ?z property:item_operated ?k . ?z rdf:type ontology:disaster . ?k rdf:type ontology:aircraft_functional_class } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) ?d WHERE { { ?d rdf:type ontology:disaster . ?h rdf:type ontology:airplane . ?d property:item_operated ?h } UNION { ?d property:item_operated ?h . ?d rdf:type ontology:disaster . ?h rdf:type ontology:aircraft_functional_class } } GROUP BY ?d } . FILTER ( ?t = ?y ) }
[]
airplane aircraft functional class disaster
Q17374096 Q15908324 Q2475745
SYSTEM
Malaysia Airlines Flight 17, Malaysia Airlines Flight 370, Siberia Airlines Flight 1812
Q462847 Q15621133 Q5438057 Q15908324 Q17374096 Q2475745
(c(Q3839081),P121,c(Q197)|c(Q20027953))
action argmax
action union
action find_tuple_counts
relation P121
type Q3839081
type Q197
action find_tuple_counts
relation P121
type Q3839081
type Q20027953
[ANSWERS] are responsible for management of max number of airplanes or aircraft functional classes
[{'concept': 'Q3839081'}, 'P121', [{'concept': 'Q197'}, {'concept': 'Q20027953'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?z WHERE { { ?z property:P121 ?k . ?z rdf:type ontology:Q3839081 . ?k rdf:type ontology:Q197 } UNION { ?z property:P121 ?k . ?z rdf:type ontology:Q3839081 . ?k rdf:type ontology:Q20027953 } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) ?d WHERE { { ?d rdf:type ontology:Q3839081 . ?h rdf:type ontology:Q197 . ?d property:P121 ?h } UNION { ?d property:P121 ?h . ?d rdf:type ontology:Q3839081 . ?h rdf:type ontology:Q20027953 } } GROUP BY ?d } . FILTER ( ?t = ?y ) }
United Airlines Flight 585 1952 Moses Lake C-124 crash Faucett Flight 251 Malaysia Airlines Flight 370 Malaysia Airlines Flight 17 Siberia Airlines Flight 1812
Malaysia Airlines Flight 17, Malaysia Airlines Flight 370 and Siberia Airlines Flight 1812 are responsible for management of max number of airplanes or aircraft functional classes
Malaysia Airlines Flight 17 Malaysia Airlines Flight 370 Siberia Airlines Flight 1812
action argmax
action union
action find_tuple_counts
relation item operated
type disaster
type airplane
action find_tuple_counts
relation item operated
type disaster
type aircraft functional class
[{'concept': 'disaster'}, 'item operated', [{'concept': 'airplane'}, {'concept': 'aircraft functional class'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?z WHERE { { ?z property:item_operated ?k . ?z rdf:type ontology:disaster . ?k rdf:type ontology:airplane } UNION { ?z property:item_operated ?k . ?z rdf:type ontology:disaster . ?k rdf:type ontology:aircraft_functional_class } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) ?d WHERE { { ?d rdf:type ontology:disaster . ?h rdf:type ontology:airplane . ?d property:item_operated ?h } UNION { ?d property:item_operated ?h . ?d rdf:type ontology:disaster . ?h rdf:type ontology:aircraft_functional_class } } GROUP BY ?d } . FILTER ( ?t = ?y ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1542
Q3839081 Q2057971
USER
Which health problems were the cause of atleast 2 disasters ?
(c(Q2057971),P1542,c(Q3839081))
action atleast
action find_tuple_counts
relation P1542
type Q2057971
type Q3839081
value 2
[{'concept': 'Q2057971'}, 'P1542', {'concept': 'Q3839081'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?w >= 2 ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?w ) WHERE { ?y property:P1542 ?x . ?y rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q3839081 } GROUP BY ?y } }
action atleast
action find_tuple_counts
relation cause of
type health problem
type disaster
value 2
[{'concept': 'health problem'}, 'cause of', {'concept': 'disaster'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?w >= 2 ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?w ) WHERE { ?y property:cause_of ?x . ?y rdf:type ontology:health_problem . ?x rdf:type ontology:disaster } GROUP BY ?y } }
[]
disaster health problem
Q12195
SYSTEM
poliomyelitis
Q12195
(c(Q2057971),P1542,c(Q3839081))
action atleast
action find_tuple_counts
relation P1542
type Q2057971
type Q3839081
value 2
[ANSWER] was the cause of atleast 2 disasters
[{'concept': 'Q2057971'}, 'P1542', {'concept': 'Q3839081'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?w >= 2 ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?w ) WHERE { ?y property:P1542 ?x . ?y rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q3839081 } GROUP BY ?y } }
poliomyelitis
Poliomyelitis was the cause of atleast 2 disasters
poliomyelitis
action atleast
action find_tuple_counts
relation cause of
type health problem
type disaster
value 2
[{'concept': 'health problem'}, 'cause of', {'concept': 'disaster'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?w >= 2 ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?w ) WHERE { ?y property:cause_of ?x . ?y rdf:type ontology:health_problem . ?x rdf:type ontology:disaster } GROUP BY ?y } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1516325
P828
Q2057971 Q7189713
USER
Which physiological conditions do around the same number of health problems lead to as Osler's node ?
(c(Q7189713),P828,c(Q2057971))
action approx
action find_tuple_counts
relation P828
type Q7189713
type Q2057971
action count
action filter_type
action find
entity Q1516325
relation P828
type Q7189713
[{'concept': 'Q7189713'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Q1516325 property:P828 ?p . ?p rdf:type ontology:Q7189713 } } . FILTER ( ?a = ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?a ) WHERE { ?i property:P828 ?n . ?n rdf:type ontology:Q2057971 . ?i rdf:type ontology:Q7189713 } GROUP BY ?i } }
Osler's node
action approx
action find_tuple_counts
relation has cause
type physiological condition
type health problem
action count
action filter_type
action find
entity Osler's node
relation has cause
type physiological condition
[{'concept': 'physiological condition'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Osler's_node property:has_cause ?p . ?p rdf:type ontology:physiological_condition } } . FILTER ( ?a = ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?a ) WHERE { ?i property:has_cause ?n . ?n rdf:type ontology:health_problem . ?i rdf:type ontology:physiological_condition } GROUP BY ?i } }
[]
health problem physiological condition
Q1149382 Q7370380 Q18347891
SYSTEM
Janeway lesion, Roth's spot, Haab's striae
Q1149382 Q18347891 Q1424702 Q3542219 Q3427755 Q738538 Q3557657 Q4976425 Q4099570 Q7261489 Q7370380 Q418527 Q8036919 Q1516325 Q4143478 Q6884891 Q3398233 Q649122 Q16946733
(c(Q7189713),P828,c(Q2057971))
action approx
action find_tuple_counts
relation P828
type Q7189713
type Q2057971
action count
action filter_type
action find
entity Q1516325
relation P828
type Q7189713
[ANSWERS] around the same number of health problems lead to as Osler's node
[{'concept': 'Q7189713'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Q1516325 property:P828 ?p . ?p rdf:type ontology:Q7189713 } } . FILTER ( ?a = ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?a ) WHERE { ?i property:P828 ?n . ?n rdf:type ontology:Q2057971 . ?i rdf:type ontology:Q7189713 } GROUP BY ?i } }
Janeway lesion Haab's striae Hutchinson's teeth typhoid state Diaphragmatic paradox tic social anxiety Brown tumor Forchheimer spots purple urine bag syndrome Roth's spot akinesia Woronoff's ring Osler's node hunchback Mizuo–Nakamura phenomenon porphyrinuria Jugular venous pressure Phacodonesis
Janeway lesion, Roth's spot and Haab's striae around the same number of health problems lead to as Osler's node
Janeway lesion Roth's spot Haab's striae
action approx
action find_tuple_counts
relation has cause
type physiological condition
type health problem
action count
action filter_type
action find
entity Osler's node
relation has cause
type physiological condition
[{'concept': 'physiological condition'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Osler's_node property:has_cause ?p . ?p rdf:type ontology:physiological_condition } } . FILTER ( ?a = ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?a ) WHERE { ?i property:has_cause ?n . ?n rdf:type ontology:health_problem . ?i rdf:type ontology:physiological_condition } GROUP BY ?i } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q3542219
P828
Q2057971 Q7189713
USER
And also tell me about typhoid state?
(c(Q7189713),P828,c(Q2057971))
action approx
action find_tuple_counts
relation P828
type Q7189713
type Q2057971
action count
action filter_type
action find
entity Q3542219
relation P828
type Q7189713
[{'concept': 'Q7189713'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?g ) WHERE { ?k property:P828 ?m . ?k rdf:type ontology:Q7189713 . ?m rdf:type ontology:Q2057971 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { resource:Q3542219 property:P828 ?d . ?d rdf:type ontology:Q7189713 } } . FILTER ( ?g = ?j ) }
typhoid state
action approx
action find_tuple_counts
relation has cause
type physiological condition
type health problem
action count
action filter_type
action find
entity typhoid state
relation has cause
type physiological condition
[{'concept': 'physiological condition'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?g ) WHERE { ?k property:has_cause ?m . ?k rdf:type ontology:physiological_condition . ?m rdf:type ontology:health_problem } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { resource:typhoid_state property:has_cause ?d . ?d rdf:type ontology:physiological_condition } } . FILTER ( ?g = ?j ) }
[]
health problem physiological condition
Q1149382 Q7370380 Q18347891
SYSTEM
Janeway lesion, Roth's spot, Haab's striae
Q1149382 Q18347891 Q1424702 Q3542219 Q3427755 Q738538 Q3557657 Q4976425 Q4099570 Q7261489 Q7370380 Q418527 Q8036919 Q1516325 Q4143478 Q6884891 Q3398233 Q649122 Q16946733
(c(Q7189713),P828,c(Q2057971))
action approx
action find_tuple_counts
relation P828
type Q7189713
type Q2057971
action count
action filter_type
action find
entity Q3542219
relation P828
type Q7189713
[ANSWERS]
[{'concept': 'Q7189713'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?g ) WHERE { ?k property:P828 ?m . ?k rdf:type ontology:Q7189713 . ?m rdf:type ontology:Q2057971 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { resource:Q3542219 property:P828 ?d . ?d rdf:type ontology:Q7189713 } } . FILTER ( ?g = ?j ) }
Janeway lesion Haab's striae Hutchinson's teeth typhoid state Diaphragmatic paradox tic social anxiety Brown tumor Forchheimer spots purple urine bag syndrome Roth's spot akinesia Woronoff's ring Osler's node hunchback Mizuo–Nakamura phenomenon porphyrinuria Jugular venous pressure Phacodonesis
Janeway lesion Roth's spot Haab's striae
action approx
action find_tuple_counts
relation has cause
type physiological condition
type health problem
action count
action filter_type
action find
entity typhoid state
relation has cause
type physiological condition
[{'concept': 'physiological condition'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?g ) WHERE { ?k property:has_cause ?m . ?k rdf:type ontology:physiological_condition . ?m rdf:type ontology:health_problem } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { resource:typhoid_state property:has_cause ?d . ?d rdf:type ontology:physiological_condition } } . FILTER ( ?g = ?j ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q2057971 Q2057971
USER
How many health problems are the result of having exactly 1 health problem ?
(c(Q2057971),P828,c(Q2057971))
action count
action equal
action find_tuple_counts
relation P828
type Q2057971
type Q2057971
value 1
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?y ) WHERE { ?z property:P828 ?e . ?z rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q2057971 } GROUP BY ?z } . FILTER ( ?y = 1 ) }
action count
action equal
action find_tuple_counts
relation has cause
type health problem
type health problem
value 1
[{'concept': 'health problem'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?y ) WHERE { ?z property:has_cause ?e . ?z rdf:type ontology:health_problem . ?e rdf:type ontology:health_problem } GROUP BY ?z } . FILTER ( ?y = 1 ) }
[]
health problem health problem
SYSTEM
40
Q147778 Q623031 Q52856 Q19972185 Q18555052 Q5038165 Q3153686 Q16831900 Q4366062 Q4797639 Q1713499 Q16242812 Q1693598 Q1890194 Q1016605 Q18557427 Q7205992 Q2339038 Q18395602 Q2933021 Q1409081 Q1724539 Q6279182 Q585011 Q3089469 Q47912 Q14375936 Q9376235 Q17126040 Q632522 Q4651856 Q7850856 Q18554229 Q5182155 Q3508771 Q3108587 Q298278 Q826522 Q18558124 Q18554306
(c(Q2057971),P828,c(Q2057971))
action count
action equal
action find_tuple_counts
relation P828
type Q2057971
type Q2057971
value 1
[ANSWER]
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?y ) WHERE { ?z property:P828 ?e . ?z rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q2057971 } GROUP BY ?z } . FILTER ( ?y = 1 ) }
liver cirrhosis liver cancer Diabetic foot Tubo-ovarian abscess malt worker's lung Carcinoma ex-pleomorphic adenoma Toluene toxicity intracranial hypotension Pneumococcal infection arthritis mutilans megaesophagus Amalgam tattoo nasopharynx carcinoma nutritional deficiency disease Burkitt lymphoma pancreatic cholera Pneumococcal pneumonia Neurogenic bladder Vitreous touch syndrome caffeine intoxication fetal nicotine spectrum disorder Congenital rubella syndrome epileptic seizure Antley-Bixler syndrome sequelae lung cancer hyperinsulinism endolymphatic hydrops Transfusion associated circulatory overload bacteriuria AIDS-related lymphoma pericardial tuberculosis kernicterus due to isoimmunization Craniotabes neuro-anemia syndrome pigmentary glaucoma esophageal varix thyroid cancer allergic asthma endocrine exophthalmos
40
action count
action equal
action find_tuple_counts
relation has cause
type health problem
type health problem
value 1
[{'concept': 'health problem'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?y ) WHERE { ?z property:has_cause ?e . ?z rdf:type ontology:health_problem . ?e rdf:type ontology:health_problem } GROUP BY ?z } . FILTER ( ?y = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1045
P530
Q1048835
USER
How many political territories holds diplomatic relationship with Somalia ?
(Q1045,P530,c(Q1048835))
action count
action filter_type
action find
entity Q1045
relation P530
type Q1048835
['Q1045', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { resource:Q1045 property:P530 ?o . ?o rdf:type ontology:Q1048835 }
Somalia
action count
action filter_type
action find
entity Somalia
relation diplomatic relation
type political territorial entity
['Somalia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { resource:Somalia property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q183
(Q1045,P530,c(Q1048835))
action count
action filter_type
action find
entity Q1045
relation P530
type Q1048835
[ANSWER]
['Q1045', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { resource:Q1045 property:P530 ?o . ?o rdf:type ontology:Q1048835 }
Germany
1
action count
action filter_type
action find
entity Somalia
relation diplomatic relation
type political territorial entity
['Somalia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { resource:Somalia property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q1028
P530
Q1048835
USER
And also tell me about Morocco?
(Q1028,P530,c(Q1048835))
action count
action filter_type
action find
entity Q1028
relation P530
type Q1048835
['Q1028', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { resource:Q1028 property:P530 ?w . ?w rdf:type ontology:Q1048835 }
Morocco
action count
action filter_type
action find
entity Morocco
relation diplomatic relation
type political territorial entity
['Morocco', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { resource:Morocco property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q16 Q183
(Q1028,P530,c(Q1048835))
action count
action filter_type
action find
entity Q1028
relation P530
type Q1048835
[ANSWER]
['Q1028', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { resource:Q1028 property:P530 ?w . ?w rdf:type ontology:Q1048835 }
Canada Germany
2
action count
action filter_type
action find
entity Morocco
relation diplomatic relation
type political territorial entity
['Morocco', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { resource:Morocco property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity }
[]