Simple Question (Direct)
Simple Question
Q1358112
P607
Q350604
USER
What was was Hugh Shelton a part of ?
(Q1358112,P607,c(Q350604))
action filter_type
action find
entity Q1358112
relation P607
type Q350604
['Q1358112', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?p WHERE { resource:Q1358112 property:P607 ?p . ?p rdf:type ontology:Q350604 }
Hugh Shelton
action filter_type
action find
entity Hugh Shelton
relation conflict
type armed conflict
['Hugh Shelton', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?p WHERE { resource:Hugh_Shelton property:conflict ?p . ?p rdf:type ontology:armed_conflict }
[]
armed conflict
Q8740
SYSTEM
Vietnam War
Q8740
(Q1358112,P607,c(Q350604))
action filter_type
action find
entity Q1358112
relation P607
type Q350604
Hugh Shelton was a part of [ANSWER]
['Q1358112', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?p WHERE { resource:Q1358112 property:P607 ?p . ?p rdf:type ontology:Q350604 }
Vietnam War
Hugh Shelton was a part of Vietnam War
Vietnam War
action filter_type
action find
entity Hugh Shelton
relation conflict
type armed conflict
['Hugh Shelton', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?p WHERE { resource:Hugh_Shelton property:conflict ?p . ?p rdf:type ontology:armed_conflict }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1358112
P410
Q4189293
USER
Which title has Hugh Shelton achieved ?
(Q1358112,P410,c(Q4189293))
action filter_type
action find
entity Q1358112
relation P410
type Q4189293
['Q1358112', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?m WHERE { resource:Q1358112 property:P410 ?m . ?m rdf:type ontology:Q4189293 }
Hugh Shelton
action filter_type
action find
entity Hugh Shelton
relation military rank
type title
['Hugh Shelton', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?m WHERE { resource:Hugh_Shelton property:military_rank ?m . ?m rdf:type ontology:title }
[]
title
Q83460
SYSTEM
general officer
Q83460
(Q1358112,P410,c(Q4189293))
action filter_type
action find
entity Q1358112
relation P410
type Q4189293
Hugh Shelton has achieved rank [ANSWER]
['Q1358112', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?m WHERE { resource:Q1358112 property:P410 ?m . ?m rdf:type ontology:Q4189293 }
general officer
Hugh Shelton has achieved rank general officer
general officer
action filter_type
action find
entity Hugh Shelton
relation military rank
type title
['Hugh Shelton', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?m WHERE { resource:Hugh_Shelton property:military_rank ?m . ?m rdf:type ontology:title }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1358112
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q83460,P27,c(Q15617994))
action filter_type
action find
entity Q1358112
relation P27
type Q15617994
['Q83460', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q1358112 property:P27 ?q }
Hugh Shelton
action filter_type
action find
entity Hugh Shelton
relation country of citizenship
type designation for an administrative territorial entity
['general officer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hugh_Shelton property:country_of_citizenship ?q }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q83460,P27,c(Q15617994))
action filter_type
action find
entity Q1358112
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q83460', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q1358112 property:P27 ?q }
United States of America
That person belongs to the United States of America
United States of America
action filter_type
action find
entity Hugh Shelton
relation country of citizenship
type designation for an administrative territorial entity
['general officer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hugh_Shelton property:country_of_citizenship ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1358112
P21
Q290
USER
Which sex does that person belong to ?
(Q30,P21,c(Q290))
action filter_type
action find
entity Q1358112
relation P21
type Q290
['Q30', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q1358112 property:P21 ?u . ?u rdf:type ontology:Q290 }
Hugh Shelton
action filter_type
action find
entity Hugh Shelton
relation gender
type sex
['United States of America', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Hugh_Shelton property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q30,P21,c(Q290))
action filter_type
action find
entity Q1358112
relation P21
type Q290
That person belongs to [ANSWER]
['Q30', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q1358112 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Hugh Shelton
relation gender
type sex
['United States of America', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Hugh_Shelton property:gender ?u . ?u rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P607
Q350604 Q502895 Q2235308
USER
Which armed conflicts did max number of people and ship types take part in ?
(c(Q502895)|c(Q2235308),P607,c(Q350604))
action argmax
action union
action find_reverse_tuple_counts
relation P607
type Q350604
type Q502895
action find_reverse_tuple_counts
relation P607
type Q350604
type Q2235308
[[{'concept': 'Q502895'}, {'concept': 'Q2235308'}], 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?g WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?j WHERE { { ?u property:P607 ?j . ?u rdf:type ontology:Q2235308 . ?j rdf:type ontology:Q350604 } UNION { ?u property:P607 ?j . ?u rdf:type ontology:Q502895 . ?j rdf:type ontology:Q350604 } } GROUP BY ?j } . FILTER ( ?v = ?e ) }
action argmax
action union
action find_reverse_tuple_counts
relation conflict
type armed conflict
type common name
action find_reverse_tuple_counts
relation conflict
type armed conflict
type ship type
[[{'concept': 'common name'}, {'concept': 'ship type'}], 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?g WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:common_name ) ( ontology:ship_type ) } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?j WHERE { { ?u property:conflict ?j . ?u rdf:type ontology:ship_type . ?j rdf:type ontology:armed_conflict } UNION { ?u property:conflict ?j . ?u rdf:type ontology:common_name . ?j rdf:type ontology:armed_conflict } } GROUP BY ?j } . FILTER ( ?v = ?e ) }
[]
armed conflict common name ship type
Q8663
SYSTEM
Korean War
Q8663
(c(Q502895)|c(Q2235308),P607,c(Q350604))
action argmax
action union
action find_reverse_tuple_counts
relation P607
type Q350604
type Q502895
action find_reverse_tuple_counts
relation P607
type Q350604
type Q2235308
[ANSWER] max number of people and ship types took part in
[[{'concept': 'Q502895'}, {'concept': 'Q2235308'}], 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?g WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?j WHERE { { ?u property:P607 ?j . ?u rdf:type ontology:Q2235308 . ?j rdf:type ontology:Q350604 } UNION { ?u property:P607 ?j . ?u rdf:type ontology:Q502895 . ?j rdf:type ontology:Q350604 } } GROUP BY ?j } . FILTER ( ?v = ?e ) }
Korean War
Korean War max number of people and ship types took part in
Korean War
action argmax
action union
action find_reverse_tuple_counts
relation conflict
type armed conflict
type common name
action find_reverse_tuple_counts
relation conflict
type armed conflict
type ship type
[[{'concept': 'common name'}, {'concept': 'ship type'}], 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?g WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:common_name ) ( ontology:ship_type ) } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?j WHERE { { ?u property:conflict ?j . ?u rdf:type ontology:ship_type . ?j rdf:type ontology:armed_conflict } UNION { ?u property:conflict ?j . ?u rdf:type ontology:common_name . ?j rdf:type ontology:armed_conflict } } GROUP BY ?j } . FILTER ( ?v = ?e ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8663
P921
Q838948
USER
Which works of art have that armed conflict as their principal topic ?
(c(Q838948),P921,Q8663)
action filter_type
action find_reverse
entity Q8663
relation P921
type Q838948
[{'concept': 'Q838948'}, 'P921', 'Q8663']
SELECT DISTINCT ?i WHERE { ?i property:P921 resource:Q8663 . ?i rdf:type ontology:Q838948 }
Korean War
action filter_type
action find_reverse
entity Korean War
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'Korean War']
SELECT DISTINCT ?i WHERE { ?i property:main_subject resource:Korean_War . ?i rdf:type ontology:work_of_art }
[]
work of art
Q494085 Q278997 Q614864
SYSTEM
MASH, Big Fish, Sayonara
Q6072305 Q3162242 Q4928785 Q562873 Q15140065 Q2630227 Q4873070 Q3047084 Q521387 Q624616 Q16255921 Q4006290 Q3207385 Q946471 Q625605 Q562504 Q3497184 Q494410 Q278997 Q2998526 Q562639 Q3644656 Q7316909 Q562747 Q4015678 Q562586 Q7813876 Q5190422 Q4730231 Q1338293 Q5979497 Q1902616 Q7631583 Q562411 Q495123 Q496718 Q7754501 Q492270 Q496738 Q562632 Q562304 Q5055758 Q3922169 Q714941 Q7746196 Q3006066 Q5473201 Q7728067 Q495637 Q5455999 Q6431687 Q12124793 Q562177 Q7683461 Q15531476 Q614864 Q494085 Q1569991 Q2759345 Q2985990
(c(Q838948),P921,Q8663)
action filter_type
action find_reverse
entity Q8663
relation P921
type Q838948
[ANSWERS] have that armed conflict as their principal topic
[{'concept': 'Q838948'}, 'P921', 'Q8663']
SELECT DISTINCT ?i WHERE { ?i property:P921 resource:Q8663 . ?i rdf:type ontology:Q838948 }
Iron Angel Japanese War Bride Blue One Minute to Zero Operation Dames Field of Honor Battle on Shangganling Mountain Pork Chop Hill The Manchurian Candidate Nambugun In Love and War Battle Zone Time Limit Sergeant Ryker The Marines Who Never Returned Marines, Let's Go Starlift Taegukgi Big Fish Men in War Fixed Bayonets! The Glory Brigade Retreat, Hell! Battle Circus Going All the Way The Steel Helmet Tokyo File 212 Cry for Happy All the Young Men The Young and The Brave I Want You War Is Hell Submarine Command War Hunt Inchon Welcome to Dongmakgol The Nun and the Sergeant Piagol 71: Into the Fire Take the High Ground! The Hook Cease Fire Prisoner of War Love Is a Many-Splendored Thing The Last Witness Crèvecoeur Forward March Hare The Crime of Korea The Front Line Five Marines Korea Patrol Hold Back the Night MacArthur Tank Battalion The Eternal Sea Sayonara MASH Sniper's Ridge The Rack A Hill in Korea
MASH, Big Fish and Sayonara have that armed conflict as their principal topic
MASH Big Fish Sayonara
action filter_type
action find_reverse
entity Korean War
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'Korean War']
SELECT DISTINCT ?i WHERE { ?i property:main_subject resource:Korean_War . ?i rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8663
P276
Q1267889
USER
Where is that armed conflict situated ?
(Q494085,P276,c(Q1267889)) (Q278997,P276,c(Q1267889)) (Q614864,P276,c(Q1267889))
action filter_type
action find
entity Q8663
relation P276
type Q1267889
['Q494085', 'P276', {'concept': 'Q1267889'}] ['Q278997', 'P276', {'concept': 'Q1267889'}] ['Q614864', 'P276', {'concept': 'Q1267889'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1267889 . resource:Q8663 property:P276 ?w }
Korean War
action filter_type
action find
entity Korean War
relation location
type waterway
['MASH', 'location', {'concept': 'waterway'}] ['Big Fish', 'location', {'concept': 'waterway'}] ['Sayonara', 'location', {'concept': 'waterway'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:waterway . resource:Korean_War property:location ?w }
[]
waterway
Q52052
SYSTEM
Korea Strait
Q52052
(Q494085,P276,c(Q1267889)) (Q278997,P276,c(Q1267889)) (Q614864,P276,c(Q1267889))
action filter_type
action find
entity Q8663
relation P276
type Q1267889
That armed conflict is situated in [ANSWER]
['Q494085', 'P276', {'concept': 'Q1267889'}] ['Q278997', 'P276', {'concept': 'Q1267889'}] ['Q614864', 'P276', {'concept': 'Q1267889'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1267889 . resource:Q8663 property:P276 ?w }
Korea Strait
That armed conflict is situated in Korea Strait
Korea Strait
action filter_type
action find
entity Korean War
relation location
type waterway
['MASH', 'location', {'concept': 'waterway'}] ['Big Fish', 'location', {'concept': 'waterway'}] ['Sayonara', 'location', {'concept': 'waterway'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:waterway . resource:Korean_War property:location ?w }
[]