Simple Question (Direct)
Simple Question
Q5488096
P509
Q2057971
USER
How did Frank Macchiarola die ?
(Q5488096,P509,c(Q2057971))
action filter_type
action find
entity Q5488096
relation P509
type Q2057971
['Q5488096', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2057971 . resource:Q5488096 property:P509 ?y }
Frank Macchiarola
action filter_type
action find
entity Frank Macchiarola
relation cause of death
type health problem
['Frank Macchiarola', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:health_problem . resource:Frank_Macchiarola property:cause_of_death ?y }
[]
health problem
Q623031
SYSTEM
liver cancer
Q623031
(Q5488096,P509,c(Q2057971))
action filter_type
action find
entity Q5488096
relation P509
type Q2057971
Frank Macchiarola died of [ANSWER]
['Q5488096', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2057971 . resource:Q5488096 property:P509 ?y }
liver cancer
Frank Macchiarola died of liver cancer
liver cancer
action filter_type
action find
entity Frank Macchiarola
relation cause of death
type health problem
['Frank Macchiarola', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:health_problem . resource:Frank_Macchiarola property:cause_of_death ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5488096
P69
Q3918
USER
Where was Frank Macchiarola educated ?
(Q5488096,P69,c(Q3918))
action filter_type
action find
entity Q5488096
relation P69
type Q3918
['Q5488096', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?u WHERE { resource:Q5488096 property:P69 ?u . ?u rdf:type ontology:Q3918 }
Frank Macchiarola
action filter_type
action find
entity Frank Macchiarola
relation educated at
type university
['Frank Macchiarola', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?u WHERE { resource:Frank_Macchiarola property:educated_at ?u . ?u rdf:type ontology:university }
[]
university
Q1149089
SYSTEM
Columbia Law School
Q1149089
(Q5488096,P69,c(Q3918))
action filter_type
action find
entity Q5488096
relation P69
type Q3918
Frank Macchiarola was educated [ANSWER]
['Q5488096', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?u WHERE { resource:Q5488096 property:P69 ?u . ?u rdf:type ontology:Q3918 }
Columbia Law School
Frank Macchiarola was educated Columbia Law School
Columbia Law School
action filter_type
action find
entity Frank Macchiarola
relation educated at
type university
['Frank Macchiarola', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?u WHERE { resource:Frank_Macchiarola property:educated_at ?u . ?u rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5488096
P1196
Q1931388
USER
What manner did Frank Macchiarola die ?
(Q5488096,P1196,c(Q1931388))
action filter_type
action find
entity Q5488096
relation P1196
type Q1931388
['Q5488096', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?h WHERE { resource:Q5488096 property:P1196 ?h . ?h rdf:type ontology:Q1931388 }
Frank Macchiarola
action filter_type
action find
entity Frank Macchiarola
relation manner of death
type cause of death
['Frank Macchiarola', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?h WHERE { resource:Frank_Macchiarola property:manner_of_death ?h . ?h rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q5488096,P1196,c(Q1931388))
action filter_type
action find
entity Q5488096
relation P1196
type Q1931388
Frank Macchiarola died of [ANSWER]
['Q5488096', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?h WHERE { resource:Q5488096 property:P1196 ?h . ?h rdf:type ontology:Q1931388 }
natural causes
Frank Macchiarola died of natural causes
natural causes
action filter_type
action find
entity Frank Macchiarola
relation manner of death
type cause of death
['Frank Macchiarola', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?h WHERE { resource:Frank_Macchiarola property:manner_of_death ?h . ?h rdf:type ontology:cause_of_death }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5488096
P21
Q290
USER
Which sex does Frank Macchiarola have ?
(Q5488096,P21,c(Q290))
action filter_type
action find
entity Q5488096
relation P21
type Q290
['Q5488096', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q5488096 property:P21 ?g . ?g rdf:type ontology:Q290 }
Frank Macchiarola
action filter_type
action find
entity Frank Macchiarola
relation gender
type sex
['Frank Macchiarola', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Frank_Macchiarola property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5488096,P21,c(Q290))
action filter_type
action find
entity Q5488096
relation P21
type Q290
Frank Macchiarola has a [ANSWER]
['Q5488096', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q5488096 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
Frank Macchiarola has a male
male
action filter_type
action find
entity Frank Macchiarola
relation gender
type sex
['Frank Macchiarola', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Frank_Macchiarola property:gender ?g . ?g rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5488096
P20
Q56061
USER
Which administrative territory is the place of death of Frank Macchiarola ?
(Q5488096,P20,c(Q56061))
action filter_type
action find
entity Q5488096
relation P20
type Q56061
['Q5488096', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q5488096 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Frank Macchiarola
action filter_type
action find
entity Frank Macchiarola
relation place of death
type administrative territorial entity
['Frank Macchiarola', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Frank_Macchiarola property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q18419
SYSTEM
Brooklyn
Q18419
(Q5488096,P20,c(Q56061))
action filter_type
action find
entity Q5488096
relation P20
type Q56061
[ANSWER] is the place of death of Frank Macchiarola
['Q5488096', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q5488096 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Brooklyn
Brooklyn is the place of death of Frank Macchiarola
Brooklyn
action filter_type
action find
entity Frank Macchiarola
relation place of death
type administrative territorial entity
['Frank Macchiarola', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Frank_Macchiarola property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1456232
Q56061
USER
And also tell me about James M. Hanks?
(Q1456232,P20,c(Q56061))
action filter_type
action find
entity Q1456232
relation P20
type Q56061
['Q1456232', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1456232 property:P20 ?x . ?x rdf:type ontology:Q56061 }
James M. Hanks
action filter_type
action find
entity James M. Hanks
relation place of death
type administrative territorial entity
['James M. Hanks', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:James_M._Hanks property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q679084
SYSTEM
Helena
Q679084
(Q1456232,P20,c(Q56061))
action filter_type
action find
entity Q1456232
relation P20
type Q56061
[ANSWER]
['Q1456232', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1456232 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Helena
Helena
action filter_type
action find
entity James M. Hanks
relation place of death
type administrative territorial entity
['James M. Hanks', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:James_M._Hanks property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q623031 Q1899331
P828
Q2057971
USER
How many health problems are the causes of liver cancer or mariske ?
(Q623031,P828,c(Q2057971)) (Q1899331,P828,c(Q2057971))
action count
action union
action filter_type
action find
entity Q623031
relation P828
type Q2057971
action filter_type
action find
entity Q1899331
relation P828
type Q2057971
['Q623031', 'P828', {'concept': 'Q2057971'}] ['Q1899331', 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?x property:P828 ?w . VALUES ( ?x ) { ( resource:Q1899331 ) ( resource:Q623031 ) } }
liver cancer mariske
action count
action union
action filter_type
action find
entity liver cancer
relation has cause
type health problem
action filter_type
action find
entity mariske
relation has cause
type health problem
['liver cancer', 'has cause', {'concept': 'health problem'}] ['mariske', 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?x property:has_cause ?w . VALUES ( ?x ) { ( resource:mariske ) ( resource:liver_cancer ) } }
[]
health problem
SYSTEM
2
Q41478 Q147778
(Q623031,P828,c(Q2057971)) (Q1899331,P828,c(Q2057971))
action count
action union
action filter_type
action find
entity Q623031
relation P828
type Q2057971
action filter_type
action find
entity Q1899331
relation P828
type Q2057971
[ANSWER]
['Q623031', 'P828', {'concept': 'Q2057971'}] ['Q1899331', 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?x property:P828 ?w . VALUES ( ?x ) { ( resource:Q1899331 ) ( resource:Q623031 ) } }
hemorrhoid liver cirrhosis
2
action count
action union
action filter_type
action find
entity liver cancer
relation has cause
type health problem
action filter_type
action find
entity mariske
relation has cause
type health problem
['liver cancer', 'has cause', {'concept': 'health problem'}] ['mariske', 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?x property:has_cause ?w . VALUES ( ?x ) { ( resource:mariske ) ( resource:liver_cancer ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q56061 Q166142 Q15416
USER
How many administrative territories are exactly 1 applications or television programs set in ?
(c(Q166142)|c(Q15416),P840,c(Q56061))
action count
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
value 1
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { FILTER ( ?m = 1 ) . { SELECT DISTINCT ?r ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?y . VALUES ( ?y ) { ( ontology:Q166142 ) ( ontology:Q15416 ) } } GROUP BY ?r } }
action count
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
value 1
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { FILTER ( ?m = 1 ) . { SELECT DISTINCT ?r ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?y . VALUES ( ?y ) { ( ontology:application ) ( ontology:television_program ) } } GROUP BY ?r } }
[]
administrative territorial entity application television program
SYSTEM
54
Q34804 Q990616 Q33486 Q1050826 Q4093 Q23337 Q2656 Q585 Q1754 Q1022 Q215646 Q1930 Q597 Q334 Q22889 Q667268 Q33935 Q1891 Q262483 Q2567585 Q209055 Q2861 Q2868 Q490584 Q237 Q16554 Q8686 Q490737 Q1563 Q1741 Q169492 Q85 Q128321 Q25390 Q16869 Q38022 Q172 Q26887 Q49241 Q472 Q124539 Q494728 Q612 Q430464 Q6106 Q49255 Q727 Q3358921 Q47716 Q165972 Q10686 Q743521 Q485186 Q42448
(c(Q166142)|c(Q15416),P840,c(Q56061))
action count
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
value 1
[ANSWER]
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { FILTER ( ?m = 1 ) . { SELECT DISTINCT ?r ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?y . VALUES ( ?y ) { ( ontology:Q166142 ) ( ontology:Q15416 ) } } GROUP BY ?r } }
Albuquerque Harwich Hartford Greater Los Angeles Area Glasgow Salt Lake City Palermo Oslo Stockholm Stuttgart Edo Ottawa Lisbon Singapore Bath Nevada City Tel Aviv Bologna Deadwood Dybbøl Torquay Rostock Lima Flint Vatican City Denver Shanghai Bloomington Havana Vienna Neukölln Cairo Midland Leeuwarden Constantinople St. Louis Toronto Davenport Lexington Sofia Whitechapel West Covina Dubai Dearborn Portland Tampa Amsterdam Overschild Charleston Fort Lauderdale Belfast Scarborough Key West Sheffield
54
action count
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
value 1
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { FILTER ( ?m = 1 ) . { SELECT DISTINCT ?r ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?y . VALUES ( ?y ) { ( ontology:application ) ( ontology:television_program ) } } GROUP BY ?r } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q679084 Q2128700
P20
Q502895
USER
How many people have Helena or Fort Macleod as the location of death ?
(c(Q502895),P20,Q679084) (c(Q502895),P20,Q2128700)
action count
action union
action filter_type
action find_reverse
entity Q679084
relation P20
type Q502895
action filter_type
action find_reverse
entity Q2128700
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q679084'] [{'concept': 'Q502895'}, 'P20', 'Q2128700']
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { ?a property:P20 ?y . VALUES ( ?y ) { ( resource:Q2128700 ) ( resource:Q679084 ) } }
Helena Fort Macleod
action count
action union
action filter_type
action find_reverse
entity Helena
relation place of death
type common name
action filter_type
action find_reverse
entity Fort Macleod
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Helena'] [{'concept': 'common name'}, 'place of death', 'Fort Macleod']
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { ?a property:place_of_death ?y . VALUES ( ?y ) { ( resource:Fort_Macleod ) ( resource:Helena ) } }
[]
common name
SYSTEM
13
Q454692 Q1456232 Q1443273 Q517871 Q8010588 Q344477 Q704710 Q6135665 Q2603914 Q7117144 Q5544587 Q888997 Q1631492
(c(Q502895),P20,Q679084) (c(Q502895),P20,Q2128700)
action count
action union
action filter_type
action find_reverse
entity Q679084
relation P20
type Q502895
action filter_type
action find_reverse
entity Q2128700
relation P20
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q679084'] [{'concept': 'Q502895'}, 'P20', 'Q2128700']
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { ?a property:P20 ?y . VALUES ( ?y ) { ( resource:Q2128700 ) ( resource:Q679084 ) } }
Sonny Boy Williamson II James M. Hanks Frank Frost Frederick Maurice Watson Harvey William H. Shield Thomas C. Hindman Robert Nighthawk James Hartley Gideon Johnson Pillow P. Booker Reed George Skelding John Isaac Moore Houston Stackhouse
13
action count
action union
action filter_type
action find_reverse
entity Helena
relation place of death
type common name
action filter_type
action find_reverse
entity Fort Macleod
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Helena'] [{'concept': 'common name'}, 'place of death', 'Fort Macleod']
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { ?a property:place_of_death ?y . VALUES ( ?y ) { ( resource:Fort_Macleod ) ( resource:Helena ) } }
[]