Simple Question (Direct)
Simple Question
Q471746
P57
Q502895
USER
Which person directed The A-Team ?
(Q471746,P57,c(Q502895))
action filter_type
action find
entity Q471746
relation P57
type Q502895
['Q471746', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q471746 property:P57 ?p . ?p rdf:type ontology:Q502895 }
The A-Team
action filter_type
action find
entity The A-Team
relation director
type common name
['The A-Team', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:The_A-Team property:director ?p . ?p rdf:type ontology:common_name }
[]
common name
Q936866
SYSTEM
Joe Carnahan
Q936866
(Q471746,P57,c(Q502895))
action filter_type
action find
entity Q471746
relation P57
type Q502895
[ANSWER] directed The A-Team
['Q471746', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q471746 property:P57 ?p . ?p rdf:type ontology:Q502895 }
Joe Carnahan
Joe Carnahan directed The A-Team
Joe Carnahan
action filter_type
action find
entity The A-Team
relation director
type common name
['The A-Team', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:The_A-Team property:director ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q471746
P1441
Q6619679
USER
Which fictional humanoid is from the works of that work of art ?
(c(Q6619679),P1441,Q936866)
action filter_type
action find_reverse
entity Q471746
relation P1441
type Q6619679
[{'concept': 'Q6619679'}, 'P1441', 'Q936866']
SELECT DISTINCT ?z WHERE { ?z property:P1441 resource:Q471746 . ?z rdf:type ontology:Q6619679 }
The A-Team
action filter_type
action find_reverse
entity The A-Team
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', 'Joe Carnahan']
SELECT DISTINCT ?z WHERE { ?z property:present_in_work resource:The_A-Team . ?z rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q2985943
SYSTEM
John "Hannibal" Smith
Q2985943
(c(Q6619679),P1441,Q936866)
action filter_type
action find_reverse
entity Q471746
relation P1441
type Q6619679
[ANSWER] is from the works of that work of art
[{'concept': 'Q6619679'}, 'P1441', 'Q936866']
SELECT DISTINCT ?z WHERE { ?z property:P1441 resource:Q471746 . ?z rdf:type ontology:Q6619679 }
John "Hannibal" Smith
John "Hannibal" Smith is from the works of that work of art
John "Hannibal" Smith
action filter_type
action find_reverse
entity The A-Team
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', 'Joe Carnahan']
SELECT DISTINCT ?z WHERE { ?z property:present_in_work resource:The_A-Team . ?z rdf:type ontology:fictional_humanoid }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q471746
P161
Q502895
USER
Who starred in that work of art ?
(Q2985943,P161,c(Q502895))
action filter_type
action find
entity Q471746
relation P161
type Q502895
['Q2985943', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q471746 property:P161 ?f . ?f rdf:type ontology:Q502895 }
The A-Team
action filter_type
action find
entity The A-Team
relation cast member
type common name
['John "Hannibal" Smith', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:The_A-Team property:cast_member ?f . ?f rdf:type ontology:common_name }
[]
common name
Q58444 Q205707 Q351290
SYSTEM
Liam Neeson, Bradley Cooper, Patrick Wilson
Q351290 Q743388 Q6793987 Q437584 Q355344 Q205707 Q58444 Q512353 Q163249 Q313107 Q325687 Q471006 Q739004
(Q2985943,P161,c(Q502895))
action filter_type
action find
entity Q471746
relation P161
type Q502895
[ANSWERS] starred in that work of art
['Q2985943', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q471746 property:P161 ?f . ?f rdf:type ontology:Q502895 }
Patrick Wilson Brian Bloom Maury Sterling Quinton Jackson Dwight Schultz Bradley Cooper Liam Neeson Sharlto Copley Jessica Biel Jon Hamm Gerald McRaney Dirk Benedict Henry Czerny
Liam Neeson, Bradley Cooper and Patrick Wilson starred in that work of art
Liam Neeson Bradley Cooper Patrick Wilson
action filter_type
action find
entity The A-Team
relation cast member
type common name
['John "Hannibal" Smith', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:The_A-Team property:cast_member ?f . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2825017 Q351290
P69
Q163740
USER
Which nonprofit organizations were Patrick Wilson or Adrian Bellani educated at ?
OR((Q351290,P69,c(Q163740)), (Q2825017,P69,c(Q163740)))
action filter_type
action union
action find
entity Q351290
relation P69
action find
entity Q2825017
relation P69
type Q163740
{'OR': [['Q351290', 'P69', {'concept': 'Q163740'}], ['Q2825017', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q351290 property:P69 ?h } UNION { resource:Q2825017 property:P69 ?h } } . ?h rdf:type ontology:Q163740 }
Adrian Bellani Patrick Wilson
action filter_type
action union
action find
entity Patrick Wilson
relation educated at
action find
entity Adrian Bellani
relation educated at
type nonprofit organization
{'OR': [['Patrick Wilson', 'educated at', {'concept': 'nonprofit organization'}], ['Adrian Bellani', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Patrick_Wilson property:educated_at ?h } UNION { resource:Adrian_Bellani property:educated_at ?h } } . ?h rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q190080 Q1536258
SYSTEM
Carnegie Mellon University, Southern Methodist University
Q190080 Q1536258
OR((Q351290,P69,c(Q163740)), (Q2825017,P69,c(Q163740)))
action filter_type
action union
action find
entity Q351290
relation P69
action find
entity Q2825017
relation P69
type Q163740
Patrick Wilson or Adrian Bellani were educated at [ANSWERS]
{'OR': [['Q351290', 'P69', {'concept': 'Q163740'}], ['Q2825017', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q351290 property:P69 ?h } UNION { resource:Q2825017 property:P69 ?h } } . ?h rdf:type ontology:Q163740 }
Carnegie Mellon University Southern Methodist University
Patrick Wilson or Adrian Bellani were educated at Carnegie Mellon University and Southern Methodist University
Carnegie Mellon University Southern Methodist University
action filter_type
action union
action find
entity Patrick Wilson
relation educated at
action find
entity Adrian Bellani
relation educated at
type nonprofit organization
{'OR': [['Patrick Wilson', 'educated at', {'concept': 'nonprofit organization'}], ['Adrian Bellani', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Patrick_Wilson property:educated_at ?h } UNION { resource:Adrian_Bellani property:educated_at ?h } } . ?h rdf:type ontology:nonprofit_organization }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P361
Q163740 Q874405 Q41176
USER
Which nonprofit organizations are approximately the same number of social groups or buildings a portion of as that nonprofit organization ?
(c(Q874405)|c(Q41176),P361,c(Q163740))
[[{'concept': 'Q874405'}, {'concept': 'Q41176'}], 'P361', {'concept': 'Q163740'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P361 ?y } UNION { ?x property:P361 ?y } } . ?z rdf:type ontology:Q874405 . ?y rdf:type ontology:Q163740 . ?x rdf:type ontology:Q41176 }
[[{'concept': 'social group'}, {'concept': 'building'}], 'part of', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?y WHERE { { { ?z property:part_of ?y } UNION { ?x property:part_of ?y } } . ?z rdf:type ontology:social_group . ?y rdf:type ontology:nonprofit_organization . ?x rdf:type ontology:building }
[]
nonprofit organization social group building
Comparative|More/Less|Mult. entity type|Clarification
Q1536258
SYSTEM
Did you mean Southern Methodist University ?
(c(Q874405)|c(Q41176),P361,c(Q163740))
[ANSWER]
[[{'concept': 'Q874405'}, {'concept': 'Q41176'}], 'P361', {'concept': 'Q163740'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P361 ?y } UNION { ?x property:P361 ?y } } . ?z rdf:type ontology:Q874405 . ?y rdf:type ontology:Q163740 . ?x rdf:type ontology:Q41176 }
Did you mean Southern Methodist University ?
Southern Methodist University
[[{'concept': 'social group'}, {'concept': 'building'}], 'part of', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?y WHERE { { { ?z property:part_of ?y } UNION { ?x property:part_of ?y } } . ?z rdf:type ontology:social_group . ?y rdf:type ontology:nonprofit_organization . ?x rdf:type ontology:building }
[]
Comparative Reasoning (All)
USER
No, I meant Carnegie Mellon University. Could you tell me the answer for that?
(c(Q874405)|c(Q41176),P361,c(Q163740))
Q190080
[[{'concept': 'Q874405'}, {'concept': 'Q41176'}], 'P361', {'concept': 'Q163740'}]
[[{'concept': 'social group'}, {'concept': 'building'}], 'part of', {'concept': 'nonprofit organization'}]
[]
Q49117 Q49114 Q333886
SYSTEM
University of Pennsylvania, Brown University, Georgetown University
Q1805202 Q49165 Q1047060 Q49167 Q49088 Q21578 Q616591 Q5109383 Q842909 Q33489 Q1886223 Q1357891 Q5756235 Q858851 Q333886 Q1809286 Q5595242 Q3298359 Q159454 Q309350 Q691152 Q812573 Q8006551 Q5621541 Q7570614 Q10664609 Q332498 Q210347 Q1017974 Q1162298 Q260528 Q1998482 Q190080 Q41506 Q49208 Q1057447 Q168276 Q895401 Q1030044 Q1366519 Q168751 Q7896307 Q29052 Q8215036 Q904943 Q6313025 Q49210 Q186047 Q746613 Q683524 Q621043 Q1623314 Q16739315 Q12565 Q4411935 Q6550556 Q193727 Q3445256 Q131252 Q49120 Q617717 Q738258 Q7227384 Q7291803 Q1805085 Q659706 Q4916759 Q7401829 Q599316 Q5193756 Q74343 Q4775035 Q638859 Q2341039 Q1056123 Q2867365 Q49118 Q384341 Q1797817 Q49114 Q4614 Q49117 Q49112 Q432637 Q1068752 Q4568893 Q6778997 Q7063485 Q3298337 Q7535073 Q7971641 Q4713754 Q5152034 Q161562 Q6705748 Q158085 Q49109 Q49108 Q8423370
(c(Q874405)|c(Q41176),P361,c(Q163740))
[ANSWERS] are approximately the same number of social groups or buildings a portion of as that nonprofit organization
[[{'concept': 'Q874405'}, {'concept': 'Q41176'}], 'P361', {'concept': 'Q163740'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P361 ?y } UNION { ?x property:P361 ?y } } . ?z rdf:type ontology:Q874405 . ?y rdf:type ontology:Q163740 . ?x rdf:type ontology:Q41176 }
Baldwin Wallace University Amherst College Case Western Reserve University Wesleyan University Columbia University Princeton University Oberlin College Christian Brothers University Rice University World Esperanto Youth Organization Seven Sisters Middlebury College High Point University Linux Foundation Georgetown University Lawrence University Grand View University Belmont University Socialist International Northwestern University Royal Geographical Society Baylor University William Carey University Gustavus Adolphus College Southern Virginia University Scripps College Brigham Young University World Organization of the Scout Movement Butler University Hungarian Red Cross British Film Institute German Federation of Northeastern Football Carnegie Mellon University Stanford University Rhode Island School of Design Loma Linda University Austrian Red Cross Bowdoin College Quinnipiac University Hamline University Duke University University of Sioux Falls Vanderbilt University University of New England Touro College Juniata College New York University Valparaiso University Astan Quds Razavi World Association of Girl Guides and Girl Scouts Emory University Hofstra University TV Königsberg 1862 e.V. Universal Esperanto Association Akademiska Sångföreningen Lincoln College Johns Hopkins University Southern New Hampshire University University of Chicago Tufts University Soka Gakkai University of Miami Pomona College Randolph College Chapman University Illinois Institute of Technology Birmingham Museums Trust Saint Mary's College of California The New School Culver–Stockton College Duquesne University Antioch University Mills College Stetson University Suffolk University Canadian Esperanto Association Boston College Ministry of Culture Hampton University Brown University University of Southern California University of Pennsylvania Yale University George Washington University Howard University Elon University Mary Baldwin University Notre Dame de Namur University Augustana College Skidmore College Washington & Jefferson College Alderson–Broaddus University Comité de Enlace del Guidismo en España California Institute of Technology Lutheran Theological Southern Seminary Max Planck Society Bard College Massachusetts Institute of Technology Wikimedia France
University of Pennsylvania, Brown University and Georgetown University are approximately the same number of social groups or buildings a portion of as that nonprofit organization
University of Pennsylvania Brown University Georgetown University
[[{'concept': 'social group'}, {'concept': 'building'}], 'part of', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?y WHERE { { { ?z property:part_of ?y } UNION { ?x property:part_of ?y } } . ?z rdf:type ontology:social_group . ?y rdf:type ontology:nonprofit_organization . ?x rdf:type ontology:building }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P361
Q3918 Q2385804
USER
How many universities and educational institutions are a component of that nonprofit organization ?
(c(Q3918),P361,Q333886) (c(Q2385804),P361,Q333886) (c(Q3918),P361,Q49117) (c(Q2385804),P361,Q49117) (c(Q3918),P361,Q49114) (c(Q2385804),P361,Q49114) (c(Q3918),P361,Q333886) (c(Q2385804),P361,Q333886)
[{'concept': 'Q3918'}, 'P361', 'Q333886'] [{'concept': 'Q2385804'}, 'P361', 'Q333886'] [{'concept': 'Q3918'}, 'P361', 'Q49117'] [{'concept': 'Q2385804'}, 'P361', 'Q49117'] [{'concept': 'Q3918'}, 'P361', 'Q49114'] [{'concept': 'Q2385804'}, 'P361', 'Q49114'] [{'concept': 'Q3918'}, 'P361', 'Q333886'] [{'concept': 'Q2385804'}, 'P361', 'Q333886']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q333886 } UNION { ?y property:P361 resource:Q333886 } UNION { ?z property:P361 resource:Q49117 } UNION { ?y property:P361 resource:Q49117 } UNION { ?z property:P361 resource:Q49114 } UNION { ?y property:P361 resource:Q49114 } UNION { ?z property:P361 resource:Q333886 } UNION { ?y property:P361 resource:Q333886 } } . ?z rdf:type ontology:Q3918 . ?y rdf:type ontology:Q2385804 }
[{'concept': 'university'}, 'part of', 'Georgetown University'] [{'concept': 'educational institution'}, 'part of', 'Georgetown University'] [{'concept': 'university'}, 'part of', 'University of Pennsylvania'] [{'concept': 'educational institution'}, 'part of', 'University of Pennsylvania'] [{'concept': 'university'}, 'part of', 'Brown University'] [{'concept': 'educational institution'}, 'part of', 'Brown University'] [{'concept': 'university'}, 'part of', 'Georgetown University'] [{'concept': 'educational institution'}, 'part of', 'Georgetown University']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:Georgetown_University } UNION { ?y property:part_of resource:Georgetown_University } UNION { ?z property:part_of resource:University_of_Pennsylvania } UNION { ?y property:part_of resource:University_of_Pennsylvania } UNION { ?z property:part_of resource:Brown_University } UNION { ?y property:part_of resource:Brown_University } UNION { ?z property:part_of resource:Georgetown_University } UNION { ?y property:part_of resource:Georgetown_University } } . ?z rdf:type ontology:university . ?y rdf:type ontology:educational_institution }
[]
university educational institution
Quantitative|Count|Mult. entity type|Clarification
Q333886
SYSTEM
Did you mean Georgetown University ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q333886 } UNION { ?y property:P361 resource:Q333886 } UNION { ?z property:P361 resource:Q49117 } UNION { ?y property:P361 resource:Q49117 } UNION { ?z property:P361 resource:Q49114 } UNION { ?y property:P361 resource:Q49114 } UNION { ?z property:P361 resource:Q333886 } UNION { ?y property:P361 resource:Q333886 } } . ?z rdf:type ontology:Q3918 . ?y rdf:type ontology:Q2385804 }
Did you mean Georgetown University ?
Georgetown University
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:Georgetown_University } UNION { ?y property:part_of resource:Georgetown_University } UNION { ?z property:part_of resource:University_of_Pennsylvania } UNION { ?y property:part_of resource:University_of_Pennsylvania } UNION { ?z property:part_of resource:Brown_University } UNION { ?y property:part_of resource:Brown_University } UNION { ?z property:part_of resource:Georgetown_University } UNION { ?y property:part_of resource:Georgetown_University } } . ?z rdf:type ontology:university . ?y rdf:type ontology:educational_institution }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q3918),P361,Q333886) (c(Q2385804),P361,Q333886) (c(Q3918),P361,Q49117) (c(Q2385804),P361,Q49117) (c(Q3918),P361,Q49114) (c(Q2385804),P361,Q49114) (c(Q3918),P361,Q333886) (c(Q2385804),P361,Q333886)
[{'concept': 'Q3918'}, 'P361', 'Q333886'] [{'concept': 'Q2385804'}, 'P361', 'Q333886'] [{'concept': 'Q3918'}, 'P361', 'Q49117'] [{'concept': 'Q2385804'}, 'P361', 'Q49117'] [{'concept': 'Q3918'}, 'P361', 'Q49114'] [{'concept': 'Q2385804'}, 'P361', 'Q49114'] [{'concept': 'Q3918'}, 'P361', 'Q333886'] [{'concept': 'Q2385804'}, 'P361', 'Q333886']
[{'concept': 'university'}, 'part of', 'Georgetown University'] [{'concept': 'educational institution'}, 'part of', 'Georgetown University'] [{'concept': 'university'}, 'part of', 'University of Pennsylvania'] [{'concept': 'educational institution'}, 'part of', 'University of Pennsylvania'] [{'concept': 'university'}, 'part of', 'Brown University'] [{'concept': 'educational institution'}, 'part of', 'Brown University'] [{'concept': 'university'}, 'part of', 'Georgetown University'] [{'concept': 'educational institution'}, 'part of', 'Georgetown University']
[]
SYSTEM
1 universities and 1 educational institutions
Q128047 Q846101
(c(Q3918),P361,Q333886) (c(Q2385804),P361,Q333886) (c(Q3918),P361,Q49117) (c(Q2385804),P361,Q49117) (c(Q3918),P361,Q49114) (c(Q2385804),P361,Q49114) (c(Q3918),P361,Q333886) (c(Q2385804),P361,Q333886)
[ANSWER]
[{'concept': 'Q3918'}, 'P361', 'Q333886'] [{'concept': 'Q2385804'}, 'P361', 'Q333886'] [{'concept': 'Q3918'}, 'P361', 'Q49117'] [{'concept': 'Q2385804'}, 'P361', 'Q49117'] [{'concept': 'Q3918'}, 'P361', 'Q49114'] [{'concept': 'Q2385804'}, 'P361', 'Q49114'] [{'concept': 'Q3918'}, 'P361', 'Q333886'] [{'concept': 'Q2385804'}, 'P361', 'Q333886']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q333886 } UNION { ?y property:P361 resource:Q333886 } UNION { ?z property:P361 resource:Q49117 } UNION { ?y property:P361 resource:Q49117 } UNION { ?z property:P361 resource:Q49114 } UNION { ?y property:P361 resource:Q49114 } UNION { ?z property:P361 resource:Q333886 } UNION { ?y property:P361 resource:Q333886 } } . ?z rdf:type ontology:Q3918 . ?y rdf:type ontology:Q2385804 }
Edmund A. Walsh School of Foreign Service Georgetown University Law Center
1 universities and 1 educational institutions
[{'concept': 'university'}, 'part of', 'Georgetown University'] [{'concept': 'educational institution'}, 'part of', 'Georgetown University'] [{'concept': 'university'}, 'part of', 'University of Pennsylvania'] [{'concept': 'educational institution'}, 'part of', 'University of Pennsylvania'] [{'concept': 'university'}, 'part of', 'Brown University'] [{'concept': 'educational institution'}, 'part of', 'Brown University'] [{'concept': 'university'}, 'part of', 'Georgetown University'] [{'concept': 'educational institution'}, 'part of', 'Georgetown University']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:Georgetown_University } UNION { ?y property:part_of resource:Georgetown_University } UNION { ?z property:part_of resource:University_of_Pennsylvania } UNION { ?y property:part_of resource:University_of_Pennsylvania } UNION { ?z property:part_of resource:Brown_University } UNION { ?y property:part_of resource:Brown_University } UNION { ?z property:part_of resource:Georgetown_University } UNION { ?y property:part_of resource:Georgetown_University } } . ?z rdf:type ontology:university . ?y rdf:type ontology:educational_institution }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P157
Q15619164 Q636497 Q6619679
USER
Which fictional humanoids were killed by atleast 1 abstract beings or stock characters ?
(c(Q6619679),P157,c(Q15619164)|c(Q636497))
action atleast
action union
action find_tuple_counts
relation P157
type Q6619679
type Q15619164
action find_tuple_counts
relation P157
type Q6619679
type Q636497
value 1
[{'concept': 'Q6619679'}, 'P157', [{'concept': 'Q15619164'}, {'concept': 'Q636497'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?b ) WHERE { { ?j property:P157 ?s . ?j rdf:type ontology:Q6619679 . ?s rdf:type ontology:Q15619164 } UNION { ?j property:P157 ?s . ?j rdf:type ontology:Q6619679 . ?s rdf:type ontology:Q636497 } } GROUP BY ?j } . FILTER ( ?b >= 1 ) }
action atleast
action union
action find_tuple_counts
relation killed by
type fictional humanoid
type abstract being
action find_tuple_counts
relation killed by
type fictional humanoid
type stock character
value 1
[{'concept': 'fictional humanoid'}, 'killed by', [{'concept': 'abstract being'}, {'concept': 'stock character'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?b ) WHERE { { ?j property:killed_by ?s . ?j rdf:type ontology:fictional_humanoid . ?s rdf:type ontology:abstract_being } UNION { ?j property:killed_by ?s . ?j rdf:type ontology:fictional_humanoid . ?s rdf:type ontology:stock_character } } GROUP BY ?j } . FILTER ( ?b >= 1 ) }
[]
abstract being stock character fictional humanoid
Q51293 Q21501356 Q2536239
SYSTEM
Jack Shephard, Alma Coin, Jenny Calendar
Q21501356 Q384436 Q2536239 Q51293 Q15733721 Q21282852
(c(Q6619679),P157,c(Q15619164)|c(Q636497))
action atleast
action union
action find_tuple_counts
relation P157
type Q6619679
type Q15619164
action find_tuple_counts
relation P157
type Q6619679
type Q636497
value 1
[ANSWERS] were killed by atleast 1 abstract beings or stock characters
[{'concept': 'Q6619679'}, 'P157', [{'concept': 'Q15619164'}, {'concept': 'Q636497'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?b ) WHERE { { ?j property:P157 ?s . ?j rdf:type ontology:Q6619679 . ?s rdf:type ontology:Q15619164 } UNION { ?j property:P157 ?s . ?j rdf:type ontology:Q6619679 . ?s rdf:type ontology:Q636497 } } GROUP BY ?j } . FILTER ( ?b >= 1 ) }
Alma Coin Silas Jenny Calendar Jack Shephard Achilles de Flandres Rachel Banks
Jack Shephard, Alma Coin and Jenny Calendar were killed by atleast 1 abstract beings or stock characters
Jack Shephard Alma Coin Jenny Calendar
action atleast
action union
action find_tuple_counts
relation killed by
type fictional humanoid
type abstract being
action find_tuple_counts
relation killed by
type fictional humanoid
type stock character
value 1
[{'concept': 'fictional humanoid'}, 'killed by', [{'concept': 'abstract being'}, {'concept': 'stock character'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?b ) WHERE { { ?j property:killed_by ?s . ?j rdf:type ontology:fictional_humanoid . ?s rdf:type ontology:abstract_being } UNION { ?j property:killed_by ?s . ?j rdf:type ontology:fictional_humanoid . ?s rdf:type ontology:stock_character } } GROUP BY ?j } . FILTER ( ?b >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q190080
P355
Q13226383
USER
Which facility is a subordinate of Carnegie Mellon University ?
(Q190080,P355,c(Q13226383))
action filter_type
action find
entity Q190080
relation P355
type Q13226383
['Q190080', 'P355', {'concept': 'Q13226383'}]
SELECT DISTINCT ?i WHERE { resource:Q190080 property:P355 ?i . ?i rdf:type ontology:Q13226383 }
Carnegie Mellon University
action filter_type
action find
entity Carnegie Mellon University
relation subsidiary
type facility
['Carnegie Mellon University', 'subsidiary', {'concept': 'facility'}]
SELECT DISTINCT ?i WHERE { resource:Carnegie_Mellon_University property:subsidiary ?i . ?i rdf:type ontology:facility }
[]
facility
Q5043958
SYSTEM
Carnegie Mellon Silicon Valley
Q5043958
(Q190080,P355,c(Q13226383))
action filter_type
action find
entity Q190080
relation P355
type Q13226383
[ANSWER] is a subordinate of Carnegie Mellon University
['Q190080', 'P355', {'concept': 'Q13226383'}]
SELECT DISTINCT ?i WHERE { resource:Q190080 property:P355 ?i . ?i rdf:type ontology:Q13226383 }
Carnegie Mellon Silicon Valley
Carnegie Mellon Silicon Valley is a subordinate of Carnegie Mellon University
Carnegie Mellon Silicon Valley
action filter_type
action find
entity Carnegie Mellon University
relation subsidiary
type facility
['Carnegie Mellon University', 'subsidiary', {'concept': 'facility'}]
SELECT DISTINCT ?i WHERE { resource:Carnegie_Mellon_University property:subsidiary ?i . ?i rdf:type ontology:facility }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q235034
Q13226383
USER
And also tell me about University of Pittsburgh?
(Q235034,P355,c(Q13226383))
action filter_type
action find
entity Q235034
relation P355
type Q13226383
['Q235034', 'P355', {'concept': 'Q13226383'}]
SELECT DISTINCT ?s WHERE { resource:Q235034 property:P355 ?s . ?s rdf:type ontology:Q13226383 }
University of Pittsburgh
action filter_type
action find
entity University of Pittsburgh
relation subsidiary
type facility
['University of Pittsburgh', 'subsidiary', {'concept': 'facility'}]
SELECT DISTINCT ?s WHERE { resource:University_of_Pittsburgh property:subsidiary ?s . ?s rdf:type ontology:facility }
[]
facility
Q7896145
SYSTEM
University of Pittsburgh at Bradford
Q7896145
(Q235034,P355,c(Q13226383))
action filter_type
action find
entity Q235034
relation P355
type Q13226383
[ANSWER]
['Q235034', 'P355', {'concept': 'Q13226383'}]
SELECT DISTINCT ?s WHERE { resource:Q235034 property:P355 ?s . ?s rdf:type ontology:Q13226383 }
University of Pittsburgh at Bradford
University of Pittsburgh at Bradford
action filter_type
action find
entity University of Pittsburgh
relation subsidiary
type facility
['University of Pittsburgh', 'subsidiary', {'concept': 'facility'}]
SELECT DISTINCT ?s WHERE { resource:University_of_Pittsburgh property:subsidiary ?s . ?s rdf:type ontology:facility }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q7896145 Q30
P17
Q15617994
USER
Is University of Pittsburgh at Bradford situated in United States of America ?
(Q7896145,P17,Q30)
action is_in
entity Q30
action find
entity Q7896145
relation P17
['Q7896145', 'P17', 'Q30']
ASK WHERE { resource:Q7896145 property:P17 resource:Q30 }
University of Pittsburgh at Bradford United States of America
action is_in
entity United States of America
action find
entity University of Pittsburgh at Bradford
relation country
['University of Pittsburgh at Bradford', 'country', 'United States of America']
ASK WHERE { resource:University_of_Pittsburgh_at_Bradford property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q7896145,P17,Q30)
action is_in
entity Q30
action find
entity Q7896145
relation P17
[ANSWER]
['Q7896145', 'P17', 'Q30']
ASK WHERE { resource:Q7896145 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity University of Pittsburgh at Bradford
relation country
['University of Pittsburgh at Bradford', 'country', 'United States of America']
ASK WHERE { resource:University_of_Pittsburgh_at_Bradford property:country resource:United_States_of_America }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2536239 Q30
P27
Q15617994
USER
Does Jenny Calendar belong to United States of America ?
(Q2536239,P27,Q30)
action is_in
entity Q30
action find
entity Q2536239
relation P27
['Q2536239', 'P27', 'Q30']
ASK WHERE { resource:Q2536239 property:P27 resource:Q30 }
Jenny Calendar United States of America
action is_in
entity United States of America
action find
entity Jenny Calendar
relation country of citizenship
['Jenny Calendar', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Jenny_Calendar property:country_of_citizenship resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q2536239,P27,Q30)
action is_in
entity Q30
action find
entity Q2536239
relation P27
[ANSWER]
['Q2536239', 'P27', 'Q30']
ASK WHERE { resource:Q2536239 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Jenny Calendar
relation country of citizenship
['Jenny Calendar', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Jenny_Calendar property:country_of_citizenship resource:United_States_of_America }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P157
Q636497 Q95074 Q6619679
USER
How many fictional humanoids were murdered by atmost 1 stock characters and fictional characters ?
(c(Q6619679),P157,c(Q636497)|c(Q95074))
action count
action atmost
action union
action find_tuple_counts
relation P157
type Q6619679
type Q636497
action find_tuple_counts
relation P157
type Q6619679
type Q95074
value 1
[{'concept': 'Q6619679'}, 'P157', [{'concept': 'Q636497'}, {'concept': 'Q95074'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) ?s WHERE { { ?s property:P157 ?z . ?z rdf:type ontology:Q636497 . ?s rdf:type ontology:Q6619679 } UNION { ?s rdf:type ontology:Q6619679 . ?z rdf:type ontology:Q95074 . ?s property:P157 ?z } } GROUP BY ?s } . FILTER ( ?b <= 1 ) }
action count
action atmost
action union
action find_tuple_counts
relation killed by
type fictional humanoid
type stock character
action find_tuple_counts
relation killed by
type fictional humanoid
type fictional character
value 1
[{'concept': 'fictional humanoid'}, 'killed by', [{'concept': 'stock character'}, {'concept': 'fictional character'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) ?s WHERE { { ?s property:killed_by ?z . ?z rdf:type ontology:stock_character . ?s rdf:type ontology:fictional_humanoid } UNION { ?s rdf:type ontology:fictional_humanoid . ?z rdf:type ontology:fictional_character . ?s property:killed_by ?z } } GROUP BY ?s } . FILTER ( ?b <= 1 ) }
[]
stock character fictional character fictional humanoid
SYSTEM
48
Q21431308 Q2142742 Q2076946 Q20818052 Q26741401 Q21431307 Q2461109 Q14920993 Q2130544 Q21501356 Q14921007 Q23900446 Q15118476 Q2089037 Q21411069 Q21431283 Q384436 Q1033932 Q7624009 Q18535424 Q24040935 Q2536239 Q2362758 Q21431277 Q1095612 Q2307276 Q20001183 Q51293 Q15223888 Q2439551 Q15733721 Q2609344 Q21489880 Q27624318 Q2297974 Q18535363 Q3808286 Q3870091 Q3836775 Q10264220 Q21282852 Q27101792 Q284262 Q9093657 Q1916185 Q765092 Q9010739 Q642549
(c(Q6619679),P157,c(Q636497)|c(Q95074))
action count
action atmost
action union
action find_tuple_counts
relation P157
type Q6619679
type Q636497
action find_tuple_counts
relation P157
type Q6619679
type Q95074
value 1
[ANSWER]
[{'concept': 'Q6619679'}, 'P157', [{'concept': 'Q636497'}, {'concept': 'Q95074'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) ?s WHERE { { ?s property:P157 ?z . ?z rdf:type ontology:Q636497 . ?s rdf:type ontology:Q6619679 } UNION { ?s rdf:type ontology:Q6619679 . ?z rdf:type ontology:Q95074 . ?s property:P157 ?z } } GROUP BY ?s } . FILTER ( ?b <= 1 ) }
Queen Eva Emilio Largo Plenty O'Toole Rhaegar Targaryen Conrad King Leopold General Ourumov Kevin Carroll Tracy Bond Alma Coin Mark DeSalvo Howard Stark Julius Solange Peter Pan Cora Mills Silas Haresh Clay Stringer Bell Rashek Maria Stark Jenny Calendar Ira Gaines Maid Marian Teri Bauer Rosa Klebb Killian Jones Jack Shephard Janduin Isam Achilles de Flandres Jonathan Levinson King Fergus Lucian/Strong Zealot Peter Franks Kelsier Jill Masterson Nancy Lord Luc Dario Rachel Banks Pietro Maximoff / Quicksilver Nina Myers Victor Drazen Sergei Barsov Caspian Jamey Farrell Francisco Scaramanga
48
action count
action atmost
action union
action find_tuple_counts
relation killed by
type fictional humanoid
type stock character
action find_tuple_counts
relation killed by
type fictional humanoid
type fictional character
value 1
[{'concept': 'fictional humanoid'}, 'killed by', [{'concept': 'stock character'}, {'concept': 'fictional character'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) ?s WHERE { { ?s property:killed_by ?z . ?z rdf:type ontology:stock_character . ?s rdf:type ontology:fictional_humanoid } UNION { ?s rdf:type ontology:fictional_humanoid . ?z rdf:type ontology:fictional_character . ?s property:killed_by ?z } } GROUP BY ?s } . FILTER ( ?b <= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q27799201 Q7896145
P17
Q15617994
USER
Which administrative territories are University of Pittsburgh at Bradford or 2016 Lithuanian Badminton Championships – Men's doubles located in ?
OR((Q7896145,P17,c(Q15617994)), (Q27799201,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7896145
relation P17
action find
entity Q27799201
relation P17
type Q15617994
{'OR': [['Q7896145', 'P17', {'concept': 'Q15617994'}], ['Q27799201', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?e ) { ( resource:Q7896145 ) ( resource:Q27799201 ) } . ?e property:P17 ?z } . ?z rdf:type ontology:Q15617994 }
2016 Lithuanian Badminton Championships – Men's doubles University of Pittsburgh at Bradford
action filter_type
action union
action find
entity University of Pittsburgh at Bradford
relation country
action find
entity 2016 Lithuanian Badminton Championships – Men's doubles
relation country
type designation for an administrative territorial entity
{'OR': [['University of Pittsburgh at Bradford', 'country', {'concept': 'designation for an administrative territorial entity'}], ["2016 Lithuanian Badminton Championships – Men's doubles", 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?e ) { ( resource:University_of_Pittsburgh_at_Bradford ) ( resource:2016_Lithuanian_Badminton_Championships_–_Men's_doubles ) } . ?e property:country ?z } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q37
SYSTEM
United States of America, Lithuania
Q30 Q37
OR((Q7896145,P17,c(Q15617994)), (Q27799201,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7896145
relation P17
action find
entity Q27799201
relation P17
type Q15617994
[ANSWERS] are University of Pittsburgh at Bradford or 2016 Lithuanian Badminton Championships – Men's doubles located in
{'OR': [['Q7896145', 'P17', {'concept': 'Q15617994'}], ['Q27799201', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?e ) { ( resource:Q7896145 ) ( resource:Q27799201 ) } . ?e property:P17 ?z } . ?z rdf:type ontology:Q15617994 }
United States of America Lithuania
United States of America and Lithuania are University of Pittsburgh at Bradford or 2016 Lithuanian Badminton Championships – Men's doubles located in
United States of America Lithuania
action filter_type
action union
action find
entity University of Pittsburgh at Bradford
relation country
action find
entity 2016 Lithuanian Badminton Championships – Men's doubles
relation country
type designation for an administrative territorial entity
{'OR': [['University of Pittsburgh at Bradford', 'country', {'concept': 'designation for an administrative territorial entity'}], ["2016 Lithuanian Badminton Championships – Men's doubles", 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?e ) { ( resource:University_of_Pittsburgh_at_Bradford ) ( resource:2016_Lithuanian_Badminton_Championships_–_Men's_doubles ) } . ?e property:country ?z } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q870275
P27
Q502895
USER
Are Luciano Alfieri civilians of those administrative territories ?
(Q870275,P27,Q30) (Q870275,P27,Q37)
action is_in
entity prev_answer
action find
entity Q870275
relation P27
['Q870275', 'P27', 'Q30'] ['Q870275', 'P27', 'Q37']
ASK WHERE { VALUES ( ?c ) { ( resource:Q30 ) ( resource:Q37 ) } . resource:Q870275 property:P27 ?c }
Luciano Alfieri
action is_in
entity prev_answer
action find
entity Luciano Alfieri
relation country of citizenship
['Luciano Alfieri', 'country of citizenship', 'United States of America'] ['Luciano Alfieri', 'country of citizenship', 'Lithuania']
ASK WHERE { VALUES ( ?c ) { ( resource:United_States_of_America ) ( resource:Lithuania ) } . resource:Luciano_Alfieri property:country_of_citizenship ?c }
[]
common name
SYSTEM
NO
(Q870275,P27,Q30) (Q870275,P27,Q37)
action is_in
entity prev_answer
action find
entity Q870275
relation P27
[ANSWER]
['Q870275', 'P27', 'Q30'] ['Q870275', 'P27', 'Q37']
ASK WHERE { VALUES ( ?c ) { ( resource:Q30 ) ( resource:Q37 ) } . resource:Q870275 property:P27 ?c }
No
action is_in
entity prev_answer
action find
entity Luciano Alfieri
relation country of citizenship
['Luciano Alfieri', 'country of citizenship', 'United States of America'] ['Luciano Alfieri', 'country of citizenship', 'Lithuania']
ASK WHERE { VALUES ( ?c ) { ( resource:United_States_of_America ) ( resource:Lithuania ) } . resource:Luciano_Alfieri property:country_of_citizenship ?c }
[]