Simple Question (Direct)
Simple Question
Q7933737
P735
Q82799
USER
What is forename of Virgil A. Richard ?
(Q7933737,P735,c(Q82799))
action filter_type
action find
entity Q7933737
relation P735
type Q82799
['Q7933737', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q7933737 property:P735 ?q . ?q rdf:type ontology:Q82799 }
Virgil A. Richard
action filter_type
action find
entity Virgil A. Richard
relation given name
type name
['Virgil A. Richard', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:Virgil_A._Richard property:given_name ?q . ?q rdf:type ontology:name }
[]
name
Q17505763
SYSTEM
Virgil
Q17505763
(Q7933737,P735,c(Q82799))
action filter_type
action find
entity Q7933737
relation P735
type Q82799
[ANSWER] is forename of [ANSWER] A. Richard
['Q7933737', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q7933737 property:P735 ?q . ?q rdf:type ontology:Q82799 }
Virgil
Virgil is forename of Virgil A. Richard
Virgil
action filter_type
action find
entity Virgil A. Richard
relation given name
type name
['Virgil A. Richard', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:Virgil_A._Richard property:given_name ?q . ?q rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7933737
P106
Q12737077
USER
Which occupation has that person as his/her 's career ?
(Q17505763,P106,c(Q12737077))
action filter_type
action find
entity Q7933737
relation P106
type Q12737077
['Q17505763', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q7933737 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Virgil A. Richard
action filter_type
action find
entity Virgil A. Richard
relation occupation
type occupation
['Virgil', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Virgil_A._Richard property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q189290
SYSTEM
officer
Q189290
(Q17505763,P106,c(Q12737077))
action filter_type
action find
entity Q7933737
relation P106
type Q12737077
[ANSWER] has that person as his/her 's career
['Q17505763', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q7933737 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
officer
Officer has that person as his/her 's career
officer
action filter_type
action find
entity Virgil A. Richard
relation occupation
type occupation
['Virgil', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Virgil_A._Richard property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P106
Q15619164 Q6619679
USER
How many abstract beings and fictional humanoids have the profession of that occupation ?
(c(Q15619164),P106,Q189290) (c(Q6619679),P106,Q189290) (c(Q15619164),P106,Q189290) (c(Q6619679),P106,Q189290)
action count
action union
action filter_type
action find_reverse
entity Q189290
relation P106
type Q15619164
action filter_type
action find_reverse
entity Q189290
relation P106
type Q6619679
[{'concept': 'Q15619164'}, 'P106', 'Q189290'] [{'concept': 'Q6619679'}, 'P106', 'Q189290'] [{'concept': 'Q15619164'}, 'P106', 'Q189290'] [{'concept': 'Q6619679'}, 'P106', 'Q189290']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { VALUES ( ?c ) { ( ontology:Q15619164 ) ( ontology:Q6619679 ) } . ?y rdf:type ?c }
action count
action union
action filter_type
action find_reverse
entity officer
relation occupation
type abstract being
action filter_type
action find_reverse
entity officer
relation occupation
type fictional humanoid
[{'concept': 'abstract being'}, 'occupation', 'officer'] [{'concept': 'fictional humanoid'}, 'occupation', 'officer'] [{'concept': 'abstract being'}, 'occupation', 'officer'] [{'concept': 'fictional humanoid'}, 'occupation', 'officer']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { VALUES ( ?c ) { ( ontology:abstract_being ) ( ontology:fictional_humanoid ) } . ?y rdf:type ?c }
[]
abstract being fictional humanoid
SYSTEM
1 abstract beings and 6 fictional humanoids
Q26254064 Q2274887 Q2499763 Q2060930 Q593185 Q3019181 Q2724858
(c(Q15619164),P106,Q189290) (c(Q6619679),P106,Q189290) (c(Q15619164),P106,Q189290) (c(Q6619679),P106,Q189290)
action count
action union
action filter_type
action find_reverse
entity Q189290
relation P106
type Q15619164
action filter_type
action find_reverse
entity Q189290
relation P106
type Q6619679
[ANSWER]
[{'concept': 'Q15619164'}, 'P106', 'Q189290'] [{'concept': 'Q6619679'}, 'P106', 'Q189290'] [{'concept': 'Q15619164'}, 'P106', 'Q189290'] [{'concept': 'Q6619679'}, 'P106', 'Q189290']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { VALUES ( ?c ) { ( ontology:Q15619164 ) ( ontology:Q6619679 ) } . ?y rdf:type ?c }
Major Bill Cage Mat Cauthon Sebastian Moran Brigadier Gerard James Norrington Davram Bashere Gustav Graves
1 abstract beings and 6 fictional humanoids
action count
action union
action filter_type
action find_reverse
entity officer
relation occupation
type abstract being
action filter_type
action find_reverse
entity officer
relation occupation
type fictional humanoid
[{'concept': 'abstract being'}, 'occupation', 'officer'] [{'concept': 'fictional humanoid'}, 'occupation', 'officer'] [{'concept': 'abstract being'}, 'occupation', 'officer'] [{'concept': 'fictional humanoid'}, 'occupation', 'officer']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { VALUES ( ?c ) { ( ontology:abstract_being ) ( ontology:fictional_humanoid ) } . ?y rdf:type ?c }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1424149 Q7933737
P69
Q163740
USER
Which nonprofit organizations were Virgil A. Richard or John Hunt Morgan educated at ?
OR((Q7933737,P69,c(Q163740)), (Q1424149,P69,c(Q163740)))
action filter_type
action union
action find
entity Q7933737
relation P69
action find
entity Q1424149
relation P69
type Q163740
{'OR': [['Q7933737', 'P69', {'concept': 'Q163740'}], ['Q1424149', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1424149 property:P69 ?l } UNION { resource:Q7933737 property:P69 ?l } } . ?l rdf:type ontology:Q163740 }
John Hunt Morgan Virgil A. Richard
action filter_type
action union
action find
entity Virgil A. Richard
relation educated at
action find
entity John Hunt Morgan
relation educated at
type nonprofit organization
{'OR': [['Virgil A. Richard', 'educated at', {'concept': 'nonprofit organization'}], ['John Hunt Morgan', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?l WHERE { { { resource:John_Hunt_Morgan property:educated_at ?l } UNION { resource:Virgil_A._Richard property:educated_at ?l } } . ?l rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49088 Q432637 Q956056
SYSTEM
Columbia University, George Washington University, Transylvania University
Q49088 Q432637 Q956056
OR((Q7933737,P69,c(Q163740)), (Q1424149,P69,c(Q163740)))
action filter_type
action union
action find
entity Q7933737
relation P69
action find
entity Q1424149
relation P69
type Q163740
The [ANSWERS] were Virgil A. Richard or John Hunt Morgan educated at
{'OR': [['Q7933737', 'P69', {'concept': 'Q163740'}], ['Q1424149', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1424149 property:P69 ?l } UNION { resource:Q7933737 property:P69 ?l } } . ?l rdf:type ontology:Q163740 }
Columbia University George Washington University Transylvania University
The Columbia University, George Washington University and Transylvania University were Virgil A. Richard or John Hunt Morgan educated at
Columbia University George Washington University Transylvania University
action filter_type
action union
action find
entity Virgil A. Richard
relation educated at
action find
entity John Hunt Morgan
relation educated at
type nonprofit organization
{'OR': [['Virgil A. Richard', 'educated at', {'concept': 'nonprofit organization'}], ['John Hunt Morgan', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?l WHERE { { { resource:John_Hunt_Morgan property:educated_at ?l } UNION { resource:Virgil_A._Richard property:educated_at ?l } } . ?l rdf:type ontology:nonprofit_organization }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P138
Q502895 Q355304 Q163740
USER
Which nonprofit organizations are the eponym of more number of people and watercourses than that nonprofit organization ?
(c(Q163740),P138,c(Q502895)|c(Q355304))
[{'concept': 'Q163740'}, 'P138', [{'concept': 'Q502895'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:P138 ?y } UNION { ?z property:P138 ?x } } . ?z rdf:type ontology:Q163740 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q355304 }
[{'concept': 'nonprofit organization'}, 'named after', [{'concept': 'common name'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:named_after ?y } UNION { ?z property:named_after ?x } } . ?z rdf:type ontology:nonprofit_organization . ?y rdf:type ontology:common_name . ?x rdf:type ontology:watercourse }
[]
common name watercourse nonprofit organization
Comparative|More/Less|Mult. entity type|Clarification
Q49088
SYSTEM
Did you mean Columbia University ?
(c(Q163740),P138,c(Q502895)|c(Q355304))
[ANSWER]
[{'concept': 'Q163740'}, 'P138', [{'concept': 'Q502895'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:P138 ?y } UNION { ?z property:P138 ?x } } . ?z rdf:type ontology:Q163740 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q355304 }
Did you mean Columbia University ?
Columbia University
[{'concept': 'nonprofit organization'}, 'named after', [{'concept': 'common name'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:named_after ?y } UNION { ?z property:named_after ?x } } . ?z rdf:type ontology:nonprofit_organization . ?y rdf:type ontology:common_name . ?x rdf:type ontology:watercourse }
[]
Comparative Reasoning (All)
USER
No, I meant George Washington University. Could you tell me the answer for that?
(c(Q163740),P138,c(Q502895)|c(Q355304))
Q432637
[{'concept': 'Q163740'}, 'P138', [{'concept': 'Q502895'}, {'concept': 'Q355304'}]]
[{'concept': 'nonprofit organization'}, 'named after', [{'concept': 'common name'}, {'concept': 'watercourse'}]]
[]
SYSTEM
2
Q165670 Q1140775
(c(Q163740),P138,c(Q502895)|c(Q355304))
[ANSWER]
[{'concept': 'Q163740'}, 'P138', [{'concept': 'Q502895'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:P138 ?y } UNION { ?z property:P138 ?x } } . ?z rdf:type ontology:Q163740 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q355304 }
Kisfaludy Society Reed College
2
[{'concept': 'nonprofit organization'}, 'named after', [{'concept': 'common name'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:named_after ?y } UNION { ?z property:named_after ?x } } . ?z rdf:type ontology:nonprofit_organization . ?y rdf:type ontology:common_name . ?x rdf:type ontology:watercourse }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q6141567 Q1424149
P607
Q350604
USER
Which armed conflicts did John Hunt Morgan and James R. Barton take part in ?
AND((Q1424149,P607,c(Q350604)), (Q6141567,P607,c(Q350604)))
action filter_type
action intersection
action find
entity Q1424149
relation P607
action find
entity Q6141567
relation P607
type Q350604
{'AND': [['Q1424149', 'P607', {'concept': 'Q350604'}], ['Q6141567', 'P607', {'concept': 'Q350604'}]]}
SELECT DISTINCT ?f WHERE { resource:Q1424149 property:P607 ?f . resource:Q6141567 property:P607 ?f . ?f rdf:type ontology:Q350604 }
James R. Barton John Hunt Morgan
action filter_type
action intersection
action find
entity John Hunt Morgan
relation conflict
action find
entity James R. Barton
relation conflict
type armed conflict
{'AND': [['John Hunt Morgan', 'conflict', {'concept': 'armed conflict'}], ['James R. Barton', 'conflict', {'concept': 'armed conflict'}]]}
SELECT DISTINCT ?f WHERE { resource:John_Hunt_Morgan property:conflict ?f . resource:James_R._Barton property:conflict ?f . ?f rdf:type ontology:armed_conflict }
[]
armed conflict
Q6683
SYSTEM
Mexican–American War
Q6683
AND((Q1424149,P607,c(Q350604)), (Q6141567,P607,c(Q350604)))
action filter_type
action intersection
action find
entity Q1424149
relation P607
action find
entity Q6141567
relation P607
type Q350604
John Hunt Morgan and James R. Barton took in the [ANSWER] part
{'AND': [['Q1424149', 'P607', {'concept': 'Q350604'}], ['Q6141567', 'P607', {'concept': 'Q350604'}]]}
SELECT DISTINCT ?f WHERE { resource:Q1424149 property:P607 ?f . resource:Q6141567 property:P607 ?f . ?f rdf:type ontology:Q350604 }
Mexican–American War
John Hunt Morgan and James R. Barton took in the Mexican–American War part
Mexican–American War
action filter_type
action intersection
action find
entity John Hunt Morgan
relation conflict
action find
entity James R. Barton
relation conflict
type armed conflict
{'AND': [['John Hunt Morgan', 'conflict', {'concept': 'armed conflict'}], ['James R. Barton', 'conflict', {'concept': 'armed conflict'}]]}
SELECT DISTINCT ?f WHERE { resource:John_Hunt_Morgan property:conflict ?f . resource:James_R._Barton property:conflict ?f . ?f rdf:type ontology:armed_conflict }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5968021 Q432637
P138
Q502895
USER
Which people are namesakes of George Washington University or USS Duncan ?
OR((Q432637,P138,c(Q502895)), (Q5968021,P138,c(Q502895)))
action filter_type
action union
action find
entity Q432637
relation P138
action find
entity Q5968021
relation P138
type Q502895
{'OR': [['Q432637', 'P138', {'concept': 'Q502895'}], ['Q5968021', 'P138', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?l ) { ( resource:Q432637 ) ( resource:Q5968021 ) } . ?l property:P138 ?y } . ?y rdf:type ontology:Q502895 }
USS Duncan George Washington University
action filter_type
action union
action find
entity George Washington University
relation named after
action find
entity USS Duncan
relation named after
type common name
{'OR': [['George Washington University', 'named after', {'concept': 'common name'}], ['USS Duncan', 'named after', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?l ) { ( resource:George_Washington_University ) ( resource:USS_Duncan ) } . ?l property:named_after ?y } . ?y rdf:type ontology:common_name }
[]
common name
Q3294548 Q23
SYSTEM
Silas Duncan, George Washington
Q3294548 Q23
OR((Q432637,P138,c(Q502895)), (Q5968021,P138,c(Q502895)))
action filter_type
action union
action find
entity Q432637
relation P138
action find
entity Q5968021
relation P138
type Q502895
[ANSWERS] are namesakes of George Washington University or USS Duncan
{'OR': [['Q432637', 'P138', {'concept': 'Q502895'}], ['Q5968021', 'P138', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?l ) { ( resource:Q432637 ) ( resource:Q5968021 ) } . ?l property:P138 ?y } . ?y rdf:type ontology:Q502895 }
Silas Duncan George Washington
Silas Duncan and George Washington are namesakes of George Washington University or USS Duncan
Silas Duncan George Washington
action filter_type
action union
action find
entity George Washington University
relation named after
action find
entity USS Duncan
relation named after
type common name
{'OR': [['George Washington University', 'named after', {'concept': 'common name'}], ['USS Duncan', 'named after', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?l ) { ( resource:George_Washington_University ) ( resource:USS_Duncan ) } . ?l property:named_after ?y } . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5968021
P289
Q2235308
USER
Which ship type represents the vessel classification of USS Duncan ?
(Q5968021,P289,c(Q2235308))
action filter_type
action find
entity Q5968021
relation P289
type Q2235308
['Q5968021', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?j WHERE { resource:Q5968021 property:P289 ?j . ?j rdf:type ontology:Q2235308 }
USS Duncan
action filter_type
action find
entity USS Duncan
relation vessel class
type ship type
['USS Duncan', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?j WHERE { resource:USS_Duncan property:vessel_class ?j . ?j rdf:type ontology:ship_type }
[]
ship type
Q1376625
SYSTEM
Gearing-class destroyer
Q1376625
(Q5968021,P289,c(Q2235308))
action filter_type
action find
entity Q5968021
relation P289
type Q2235308
[ANSWER] represents the vessel classification of USS Duncan
['Q5968021', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?j WHERE { resource:Q5968021 property:P289 ?j . ?j rdf:type ontology:Q2235308 }
Gearing-class destroyer
Gearing-class destroyer represents the vessel classification of USS Duncan
Gearing-class destroyer
action filter_type
action find
entity USS Duncan
relation vessel class
type ship type
['USS Duncan', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?j WHERE { resource:USS_Duncan property:vessel_class ?j . ?j rdf:type ontology:ship_type }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q7867787 Q5968021
P289
Q2235308
USER
Or USS Boone?
OR((Q5968021,P289,c(Q2235308)), (Q7867787,P289,c(Q2235308)))
action filter_type
action union
action find
entity Q5968021
relation P289
action find
entity Q7867787
relation P289
type Q2235308
{'OR': [['Q5968021', 'P289', {'concept': 'Q2235308'}], ['Q7867787', 'P289', {'concept': 'Q2235308'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?q ) { ( resource:Q5968021 ) ( resource:Q7867787 ) } . ?q property:P289 ?x } . ?x rdf:type ontology:Q2235308 }
USS Boone USS Duncan
action filter_type
action union
action find
entity USS Duncan
relation vessel class
action find
entity USS Boone
relation vessel class
type ship type
{'OR': [['USS Duncan', 'vessel class', {'concept': 'ship type'}], ['USS Boone', 'vessel class', {'concept': 'ship type'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?q ) { ( resource:USS_Duncan ) ( resource:USS_Boone ) } . ?q property:vessel_class ?x } . ?x rdf:type ontology:ship_type }
[]
ship type
Q1146814 Q1376625
SYSTEM
Oliver Hazard Perry-class frigate, Gearing-class destroyer
Q1146814 Q1376625
OR((Q5968021,P289,c(Q2235308)), (Q7867787,P289,c(Q2235308)))
action filter_type
action union
action find
entity Q5968021
relation P289
action find
entity Q7867787
relation P289
type Q2235308
[ANSWERS]
{'OR': [['Q5968021', 'P289', {'concept': 'Q2235308'}], ['Q7867787', 'P289', {'concept': 'Q2235308'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?q ) { ( resource:Q5968021 ) ( resource:Q7867787 ) } . ?q property:P289 ?x } . ?x rdf:type ontology:Q2235308 }
Oliver Hazard Perry-class frigate Gearing-class destroyer
Oliver Hazard Perry-class frigate Gearing-class destroyer
action filter_type
action union
action find
entity USS Duncan
relation vessel class
action find
entity USS Boone
relation vessel class
type ship type
{'OR': [['USS Duncan', 'vessel class', {'concept': 'ship type'}], ['USS Boone', 'vessel class', {'concept': 'ship type'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?q ) { ( resource:USS_Duncan ) ( resource:USS_Boone ) } . ?q property:vessel_class ?x } . ?x rdf:type ontology:ship_type }
[]