Simple Question (Direct)
Simple Question
Q1570131
P136
Q151885
USER
Which concept is the genre for Hal McIntyre ?
(Q1570131,P136,c(Q151885))
action filter_type
action find
entity Q1570131
relation P136
type Q151885
['Q1570131', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { resource:Q1570131 property:P136 ?r . ?r rdf:type ontology:Q151885 }
Hal McIntyre
action filter_type
action find
entity Hal McIntyre
relation genre
type concept
['Hal McIntyre', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { resource:Hal_McIntyre property:genre ?r . ?r rdf:type ontology:concept }
[]
concept
Q8341
SYSTEM
jazz
Q8341
(Q1570131,P136,c(Q151885))
action filter_type
action find
entity Q1570131
relation P136
type Q151885
So [ANSWER] is the genre for Hal McIntyre
['Q1570131', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { resource:Q1570131 property:P136 ?r . ?r rdf:type ontology:Q151885 }
jazz
So jazz is the genre for Hal McIntyre
jazz
action filter_type
action find
entity Hal McIntyre
relation genre
type concept
['Hal McIntyre', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { resource:Hal_McIntyre property:genre ?r . ?r rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1570131
P21
Q290
USER
What is the sex of Hal McIntyre ?
(Q1570131,P21,c(Q290))
action filter_type
action find
entity Q1570131
relation P21
type Q290
['Q1570131', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q1570131 property:P21 ?w . ?w rdf:type ontology:Q290 }
Hal McIntyre
action filter_type
action find
entity Hal McIntyre
relation gender
type sex
['Hal McIntyre', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Hal_McIntyre property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1570131,P21,c(Q290))
action filter_type
action find
entity Q1570131
relation P21
type Q290
The sex of Hal McIntyre is the [ANSWER]
['Q1570131', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q1570131 property:P21 ?w . ?w rdf:type ontology:Q290 }
male
The sex of Hal McIntyre is the male
male
action filter_type
action find
entity Hal McIntyre
relation gender
type sex
['Hal McIntyre', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Hal_McIntyre property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3808375
Q290
USER
And how about Jim Reed?
(Q3808375,P21,c(Q290))
action filter_type
action find
entity Q3808375
relation P21
type Q290
['Q3808375', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q290 . resource:Q3808375 property:P21 ?z }
Jim Reed
action filter_type
action find
entity Jim Reed
relation gender
type sex
['Jim Reed', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sex . resource:Jim_Reed property:gender ?z }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3808375,P21,c(Q290))
action filter_type
action find
entity Q3808375
relation P21
type Q290
[ANSWER]
['Q3808375', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q290 . resource:Q3808375 property:P21 ?z }
male
male
action filter_type
action find
entity Jim Reed
relation gender
type sex
['Jim Reed', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sex . resource:Jim_Reed property:gender ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1570131
P27
Q15617994
USER
Which administrative territory is Hal McIntyre a civilian of ?
(Q1570131,P27,c(Q15617994))
action filter_type
action find
entity Q1570131
relation P27
type Q15617994
['Q1570131', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q1570131 property:P27 ?n }
Hal McIntyre
action filter_type
action find
entity Hal McIntyre
relation country of citizenship
type designation for an administrative territorial entity
['Hal McIntyre', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hal_McIntyre property:country_of_citizenship ?n }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1570131,P27,c(Q15617994))
action filter_type
action find
entity Q1570131
relation P27
type Q15617994
Which administrative territory is Hal McIntyre a civilian of
['Q1570131', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q1570131 property:P27 ?n }
United States of America
Which administrative territory is Hal McIntyre a civilian of
United States of America
action filter_type
action find
entity Hal McIntyre
relation country of citizenship
type designation for an administrative territorial entity
['Hal McIntyre', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hal_McIntyre property:country_of_citizenship ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1570131
P106
Q12737077
USER
Which occupations have Hal McIntyre as his/her 's career ?
(Q1570131,P106,c(Q12737077))
action filter_type
action find
entity Q1570131
relation P106
type Q12737077
['Q1570131', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1570131 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Hal McIntyre
action filter_type
action find
entity Hal McIntyre
relation occupation
type occupation
['Hal McIntyre', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Hal_McIntyre property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q158852 Q15981151 Q12800682
SYSTEM
conductor, jazz musician, saxophonist
Q158852 Q15981151 Q806349 Q12800682
(Q1570131,P106,c(Q12737077))
action filter_type
action find
entity Q1570131
relation P106
type Q12737077
[ANSWERS] have Hal McIntyre as his/her 's career
['Q1570131', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1570131 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
conductor jazz musician bandleader saxophonist
Conductor, jazz musician and saxophonist have Hal McIntyre as his/her 's career
conductor jazz musician saxophonist
action filter_type
action find
entity Hal McIntyre
relation occupation
type occupation
['Hal McIntyre', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Hal_McIntyre property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1570131
P20
Q56061
USER
Which administrative territory is the place of death of Hal McIntyre ?
(Q1570131,P20,c(Q56061))
action filter_type
action find
entity Q1570131
relation P20
type Q56061
['Q1570131', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1570131 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Hal McIntyre
action filter_type
action find
entity Hal McIntyre
relation place of death
type administrative territorial entity
['Hal McIntyre', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Hal_McIntyre property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q1570131,P20,c(Q56061))
action filter_type
action find
entity Q1570131
relation P20
type Q56061
[ANSWER] is the place of death of Hal McIntyre
['Q1570131', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1570131 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Los Angeles
Los Angeles is the place of death of Hal McIntyre
Los Angeles
action filter_type
action find
entity Hal McIntyre
relation place of death
type administrative territorial entity
['Hal McIntyre', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Hal_McIntyre property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16912217
Q56061
USER
And how about Karel Hendrik Geerts?
(Q16912217,P20,c(Q56061))
action filter_type
action find
entity Q16912217
relation P20
type Q56061
['Q16912217', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q16912217 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Karel Hendrik Geerts
action filter_type
action find
entity Karel Hendrik Geerts
relation place of death
type administrative territorial entity
['Karel Hendrik Geerts', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Karel_Hendrik_Geerts property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q118958
SYSTEM
Leuven
Q118958
(Q16912217,P20,c(Q56061))
action filter_type
action find
entity Q16912217
relation P20
type Q56061
[ANSWER]
['Q16912217', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q16912217 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Leuven
Leuven
action filter_type
action find
entity Karel Hendrik Geerts
relation place of death
type administrative territorial entity
['Karel Hendrik Geerts', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Karel_Hendrik_Geerts property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q1770695
P136
Q502895
USER
How many people have United States of America or Hindustani classical music as genre ?
(c(Q502895),P136,Q30) (c(Q502895),P136,Q1770695)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P136
type Q502895
action filter_type
action find_reverse
entity Q1770695
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q30'] [{'concept': 'Q502895'}, 'P136', 'Q1770695']
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { ?v property:P136 resource:Q30 . ?v rdf:type ontology:Q502895 } UNION { ?v property:P136 resource:Q1770695 . ?v rdf:type ontology:Q502895 } }
United States of America Hindustani classical music
action count
action union
action filter_type
action find_reverse
entity United States of America
relation genre
type common name
action filter_type
action find_reverse
entity Hindustani classical music
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'United States of America'] [{'concept': 'common name'}, 'genre', 'Hindustani classical music']
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { ?v property:genre resource:United_States_of_America . ?v rdf:type ontology:common_name } UNION { ?v property:genre resource:Hindustani_classical_music . ?v rdf:type ontology:common_name } }
[]
common name
SYSTEM
7
Q103774 Q2845305 Q16209989 Q144719 Q4730311 Q981797 Q1392049
(c(Q502895),P136,Q30) (c(Q502895),P136,Q1770695)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P136
type Q502895
action filter_type
action find_reverse
entity Q1770695
relation P136
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P136', 'Q30'] [{'concept': 'Q502895'}, 'P136', 'Q1770695']
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { ?v property:P136 resource:Q30 . ?v rdf:type ontology:Q502895 } UNION { ?v property:P136 resource:Q1770695 . ?v rdf:type ontology:Q502895 } }
Ravi Shankar Anand Kumar Moinuddin Khan Zakir Hussain Allah Rakha Sultan Khan Alla Rakha
7
action count
action union
action filter_type
action find_reverse
entity United States of America
relation genre
type common name
action filter_type
action find_reverse
entity Hindustani classical music
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'United States of America'] [{'concept': 'common name'}, 'genre', 'Hindustani classical music']
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { ?v property:genre resource:United_States_of_America . ?v rdf:type ontology:common_name } UNION { ?v property:genre resource:Hindustani_classical_music . ?v rdf:type ontology:common_name } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P17
Q25631158 Q811704
USER
How many highway systems and classes are present in United States of America ?
(c(Q25631158),P17,Q30) (c(Q811704),P17,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P17
type Q25631158
action filter_type
action find_reverse
entity Q30
relation P17
type Q811704
[{'concept': 'Q25631158'}, 'P17', 'Q30'] [{'concept': 'Q811704'}, 'P17', 'Q30']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:Q25631158 ) ( ontology:Q811704 ) } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation country
type highway system
action filter_type
action find_reverse
entity United States of America
relation country
type class
[{'concept': 'highway system'}, 'country', 'United States of America'] [{'concept': 'class'}, 'country', 'United States of America']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:highway_system ) ( ontology:class ) } }
[]
highway system class
SYSTEM
2 highway systems and 50 classes
Q4736955 Q6861828 Q5513293 Q5092892 Q6861825 Q432706 Q6736329 Q7562620 Q5323480 Q7120487 Q7562624 Q7866840 Q16983067 Q5323488 Q7120486 Q1881499 Q3918329 Q5323371 Q7392169 Q980315 Q19840978 Q19840979 Q249051 Q7570301 Q19840980 Q7866833 Q432718 Q7866835 Q7866834 Q7866837 Q7866838 Q6031844 Q4654913 Q2174757 Q2485547 Q7120488 Q197861 Q7419496 Q794947 Q721652 Q529138 Q16973944 Q3313144 Q1881509 Q4850584 Q3313140 Q7885984 Q7392172 Q7392173 Q5203028 Q1881504 Q7866832
(c(Q25631158),P17,Q30) (c(Q811704),P17,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P17
type Q25631158
action filter_type
action find_reverse
entity Q30
relation P17
type Q811704
[ANSWER]
[{'concept': 'Q25631158'}, 'P17', 'Q30'] [{'concept': 'Q811704'}, 'P17', 'Q30']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:Q25631158 ) ( ontology:Q811704 ) } }
Altoona Works BP4 Milwaukee Road class L2 GE P30CH Chesapeake and Ohio classes L-2 and L-2-A Milwaukee Road class ES-1 ALP-45DP Maine Central class C Soo Line B-4 class EMD SDP40F Pennsylvania Railroad H6 Soo Line L-1 class USRA Light Santa Fe NYC Mohawk EMD TR1 Pennsylvania Railroad G5 Milwaukee Road class A Pennsylvania Railroad M1 EMC AA Spokane, Portland and Seattle Railway class A-3 Milwaukee Road class EF-4 and EP-4 USRA Heavy Mountain USRA Light Mountain Milwaukee Road class ES-2 Southern Pacific class AC-8 USRA Heavy Pacific USRA 0-8-0 ALP-46 USRA 2-8-8-2 USRA 2-6-6-2 USRA Heavy Santa Fe USRA Light Pacific Ingalls 4-S ATSF 1158 class Turnpikes of Oklahoma Missouri supplemental route Pennsylvania Railroad H8 Pennsylvania Railroad GG1 Santa Fe 5000 Boston and Maine 5000–5006 HHP-8 Milwaukee Road class EP-2 Southern Pacific class AC-9 USRA Light Mikado Milwaukee Road class EP-1, EF-1, EF-2, EF-3, and EF-5 Baldwin RS-12 USRA Heavy Mikado Union Railroad 0-10-2 SP&S Class L-3 Spokane, Porland and Seattle Railway class L-4 D&RGW K-27 Milwaukee Road class EP-3 USRA 0-6-0
2 highway systems and 50 classes
action count
action union
action filter_type
action find_reverse
entity United States of America
relation country
type highway system
action filter_type
action find_reverse
entity United States of America
relation country
type class
[{'concept': 'highway system'}, 'country', 'United States of America'] [{'concept': 'class'}, 'country', 'United States of America']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:highway_system ) ( ontology:class ) } }
[]