Simple Question (Direct)
Simple Question
Q1443106
P607
Q198
USER
What battle was Frank Crawford Armstrong a part of ?
(Q1443106,P607,c(Q198))
action filter_type
action find
entity Q1443106
relation P607
type Q198
['Q1443106', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?l WHERE { resource:Q1443106 property:P607 ?l . ?l rdf:type ontology:Q198 }
Frank Crawford Armstrong
action filter_type
action find
entity Frank Crawford Armstrong
relation conflict
type war
['Frank Crawford Armstrong', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?l WHERE { resource:Frank_Crawford_Armstrong property:conflict ?l . ?l rdf:type ontology:war }
[]
war
Q8676
SYSTEM
American Civil War
Q8676
(Q1443106,P607,c(Q198))
action filter_type
action find
entity Q1443106
relation P607
type Q198
Frank Crawford was a part of the [ANSWER]
['Q1443106', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?l WHERE { resource:Q1443106 property:P607 ?l . ?l rdf:type ontology:Q198 }
American Civil War
Frank Crawford was a part of the American Civil War
American Civil War
action filter_type
action find
entity Frank Crawford Armstrong
relation conflict
type war
['Frank Crawford Armstrong', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?l WHERE { resource:Frank_Crawford_Armstrong property:conflict ?l . ?l rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8676
P361
Q1190554
USER
What are a component of that war ?
(c(Q1190554),P361,Q8676)
action filter_type
action find_reverse
entity Q8676
relation P361
type Q1190554
[{'concept': 'Q1190554'}, 'P361', 'Q8676']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q1190554 . ?g property:P361 resource:Q8676 }
American Civil War
action filter_type
action find_reverse
entity American Civil War
relation part of
type event
[{'concept': 'event'}, 'part of', 'American Civil War']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:event . ?g property:part_of resource:American_Civil_War }
[]
event
Q233360 Q2640011 Q33132
SYSTEM
Second Battle of Corinth, Battle of Barbourville, Battle of Gettysburg
Q48776 Q4871474 Q3297425 Q2512802 Q4801174 Q243640 Q1497885 Q3072344 Q233360 Q2333674 Q841297 Q868481 Q794695 Q3355628 Q2426213 Q1626179 Q601359 Q2003883 Q2018804 Q2032741 Q994665 Q977428 Q2454284 Q636670 Q2615801 Q3007076 Q2482906 Q860295 Q745979 Q770745 Q2687368 Q1786801 Q4522192 Q2067472 Q4872012 Q33132 Q2253305 Q2013252 Q4871528 Q2284279 Q2889251 Q2700708 Q2378795 Q4871678 Q2451867 Q943277 Q2237043 Q580651 Q688807 Q684191 Q2469718 Q4870922 Q1519203 Q304655 Q1550466 Q2890896 Q2632927 Q1425882 Q233343 Q2243497 Q526697 Q676148 Q2887919 Q1538874 Q509337 Q2282207 Q2889268 Q2170921 Q2355732 Q2890151 Q2570177 Q1970207 Q2363999 Q1362294 Q2941587 Q1647769 Q751186 Q4993803 Q2293850 Q855966 Q719252 Q4870231 Q135468 Q2059030 Q1061090 Q2781626 Q2888357 Q3477165 Q1149680 Q543165 Q2604991 Q3477162 Q748219 Q1497877 Q1934345 Q1426037 Q2611018 Q2540993 Q2232600 Q2889677 Q2373632 Q3477167 Q460143 Q370671 Q2752838 Q765215 Q2897821 Q531346 Q2889807 Q176216 Q766944 Q2688934 Q2140288 Q2102607 Q840254 Q4871063 Q2313310 Q2334874 Q1355391 Q3588241 Q630099 Q1272132 Q305409 Q967287 Q767157 Q774532 Q841150 Q1542829 Q2658952 Q2889687 Q1497969 Q601317 Q620244 Q2887870 Q6464335 Q2553234 Q2205730 Q3401909 Q2347044 Q2943193 Q1154050 Q2804685 Q1781894 Q305331 Q7443109 Q1366089 Q592752 Q523364 Q2134266 Q2480286 Q2888543 Q2010256 Q194329 Q2516943 Q1061267 Q2672202 Q2889788 Q497797 Q761031 Q2198831 Q2888696 Q1626369 Q1066253 Q1387983 Q2125491 Q3636541 Q3425672 Q3401918 Q2392704 Q1954336 Q7283719 Q221469 Q2889614 Q848741 Q2618945 Q1894305 Q1821843 Q1631029 Q2551448 Q2888382 Q180659 Q1327790 Q1152440 Q2043320 Q2889158 Q2889502 Q2595291 Q2169111 Q1497902 Q2889509 Q1870843 Q1497909 Q3327478 Q4871346 Q193993 Q4872732 Q429655 Q2185405 Q1710916 Q2789421 Q1362021 Q2615826 Q1477050 Q2132802 Q1387925 Q1565693 Q2307727 Q670290 Q2420736 Q841131 Q281850 Q2374330 Q2292185 Q2000189 Q2457962 Q2887827 Q3355632 Q492324 Q2640011 Q2890378 Q586945 Q2890377 Q1752689
(c(Q1190554),P361,Q8676)
action filter_type
action find_reverse
entity Q8676
relation P361
type Q1190554
A component of that war are the [ANSWERS]
[{'concept': 'Q1190554'}, 'P361', 'Q8676']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q1190554 . ?g property:P361 resource:Q8676 }
Battle of Palmito Ranch Battle of Kolb's Farm Centralia Massacre Battle of Olustee Second Battle of Petersburg Second Battle of Sabine Pass Battle of Hoke's Run Battle of Unison Second Battle of Corinth Battle of Jonesborough Battle of Williamsport Battle of Hampton Roads Battle of Big Bethel Nashville Union order of battle Battle of Roan's Tan Yard Battle of Opequon Battle of Fort Donelson Battle of Hancock Battle of Mill Springs Battle of Goodrich's Landing Battle of Monroe's Crossroads Siege of Fort Pitt Battle of Hartsville Battle of Peachtree Creek Battle of Adairsville Battle of Poison Spring Battle of Grand Gulf Siege of Port Hudson Battle of Chancellorsville Battle of Fairfield Battle of Missionary Ridge Battle of the Crater Battle of Chustenahlah Battle of Tampa Battle of Pensacola Battle of Gettysburg Battle of Richmond Battle of White Hall Battle of Lake Providence Battle of Fort Pulaski Battle of Marianna Capture of New Orleans Battle of Lebanon Battle of Marion Battle of Boonville Battle of Shiloh Battle of New Market Battle of Glorieta Pass Battle of Dinwiddie Court House Battle of Elizabeth City Battle of Gainesville Battle of Droop Mountain Battle of Mobile Bay First Battle of Auburn Battle of Seven Pines Battle of Albemarle Sound Battle of Chickasaw Bayou Battle of the Wilderness Second Battle of Bull Run Battle of Davis's Cross Roads Second Battle of Rappahannock Station Battle of Mansfield Battle of Averasborough Battle of Spotsylvania Court House Great Locomotive Chase Battle of Helena Battle of Marmiton River Battle of Bristoe Station Battle of Santa Rosa Island Battle of Tebbs Bend Battle of Kennesaw Mountain Battle of Cross Keys Battle of Fort Blair Battle of Drewry's Bluff Second Battle of Springfield Battle of Forts Jackson and St. Philip Battle of Fredericksburg Third Battle of Murfreesboro Battle of Liberty Battle of Goldsboro Bridge Battle of Antietam Battle of Aiken Battle of Haw's Shop Battle of Hunterstown Battle of Philippi Battle of Dranesville Battle of Cove Mountain Battle of Fort McAllister First Battle of Lexington Battle of Fort Sumter Battle of Funkstown Second Battle of Dalton Battle of Brandy Station Battle of Hatchie's Bridge Battle of Malvern Hill Battle of Cheat Mountain Battle of Natural Bridge Battle of Dry Wood Creek Stoneman's 1863 Raid Battle of Portland Harbor First Battle of Sabine Pass Battle of Saltville II Lawrence Massacre Battle of Franklin Second Battle of Auburn Second Battle of Winchester First Battle of Murfreesboro Battle of Valverde Battle of Roanoke Island Battle of Yellow Tavern Battle of Fisher's Hill Battle of Salineville Battle of Williamsburg First Battle of Rappahannock Station Battle of Sewell's Point Battle of Franklin's Crossing Battle of Selma Battle of Tranter's Creek Battle of Appomattox Court House Baltimore riot of 1861 St. Albans Raid Battle of Stones River Battle of Mine Run Manassas Station Operations Battle of Middleburg Battle of Aquia Creek Battle of Boonsboro Battle of South Mountain Battle of Cole Camp Battle of Port Royal Battle of Sayler's Creek Battle of North Anna Battle of Bentonville Battle of Apache Pass La Paz Incident Battle of Culpeper Court House Battle of Thoroughfare Gap First Battle of Dalton Fight at Monterey Pass Battle of the Cumberland Gap Peninsula Campaign Battle of Marks' Mills Battle of Trevilian Station Battle of Carlisle Second Battle of Ream's Station Battle of Fort Henry Battle of Honey Springs Battle of Island Number Ten Battle of Saint John's Bluff Battle of Peralta Siege of Fort Macon Battle of South Mills Battle of Five Forks Skirmish at Blackwater Creek Battle of Rich Mountain Battle of Fort Sanders Battle of Ringgold Gap Battle of Cold Harbor Battle of Arkansas Post Battle of Hartville Battle of Griswoldville Battle of Fort Stevens Siege of Vicksburg Battle of Memphis Battle of Front Royal Battle of Mount Zion Church Battle of Young's Point Battle of Saltville I Battle of Corydon First Battle of Fort Wagner Raid at Combahee Ferry First Battle of Bull Run Battle of Picacho Pass Battle of Cockpit Point Battle of Fredericktown Battle of Athens Battle of Fort Pillow Battle of Perryville Battle of Kirksville Battle of Dallas Battle of Wilson's Creek Battle of Chickamauga Pickett's Charge Battle of Jackson, Mississippi Battle of Lone Jack Battle of New Hope Church Battle of Kelly's Ford Battle of West Point Battle of Blackburn's Ford Battle of New Bern Battle of Chusto-Talasah Battle of Ball's Bluff Battle of Athens Battle of Johnsonville Battle of Pea Ridge Battle of Whitney's Lane Battle of Cedar Mountain Battle of Hatteras Inlet Batteries Battle of Cedar Creek Battle of Prairie Grove Siege of Corinth Battle of Resaca Chattanooga Campaign Battle of Meridian Battle of Round Mountain Battle of Harpers Ferry Battle of Saint Charles Battle of Carthage Battle of Chantilly Battle of Manassas Gap Battle of Stanwix Station Battle of Atlanta Battle of Buckland Mills Battle of Glendale Battle of Devil's Backbone Battle of Allatoona Nashville Confederate order of battle Seven Days Battles Battle of Barbourville Battle of Waynesboro, Georgia Battle of Wyse Fork Battle of Waynesboro, Virginia Battle of Nashville
A component of that war are the Second Battle of Corinth, Battle of Barbourville and Battle of Gettysburg
Second Battle of Corinth Battle of Barbourville Battle of Gettysburg
action filter_type
action find_reverse
entity American Civil War
relation part of
type event
[{'concept': 'event'}, 'part of', 'American Civil War']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:event . ?g property:part_of resource:American_Civil_War }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q233360 Q2640011 Q33132
P607
Q502895
USER
Which people did those events fight in ?
(c(Q502895),P607,Q233360) (c(Q502895),P607,Q2640011) (c(Q502895),P607,Q33132)
action filter_type
action find_reverse
entity prev_answer
relation P607
type Q502895
[{'concept': 'Q502895'}, 'P607', 'Q233360'] [{'concept': 'Q502895'}, 'P607', 'Q2640011'] [{'concept': 'Q502895'}, 'P607', 'Q33132']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . VALUES ( ?i ) { ( resource:Q48776 ) ( resource:Q4871474 ) ( resource:Q3297425 ) } . ?l property:P607 ?i }
Second Battle of Corinth Battle of Barbourville Battle of Gettysburg
action filter_type
action find_reverse
entity prev_answer
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Second Battle of Corinth'] [{'concept': 'common name'}, 'conflict', 'Battle of Barbourville'] [{'concept': 'common name'}, 'conflict', 'Battle of Gettysburg']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . VALUES ( ?i ) { ( resource:Battle_of_Palmito_Ranch ) ( resource:Battle_of_Kolb's_Farm ) ( resource:Centralia_Massacre ) } . ?l property:conflict ?i }
[]
common name
Q1390003 Q297121 Q1403915
SYSTEM
Francis C. Barlow, George Meade, Felix Zollicoffer
Q7433073 Q23619916 Q7350553 Q6144717 Q8010681 Q6775365 Q6687411 Q1403915 Q297121 Q5883244 Q8020992 Q1971889 Q5147102 Q7325506 Q6527106 Q5093708 Q6963925 Q5041132 Q5665711 Q6133336 Q6283659 Q7792847 Q434323 Q5479925 Q3082622 Q4415614 Q7324860 Q5342688 Q4888559 Q6175400 Q4734543 Q7103014 Q2658043 Q4351723 Q5361002 Q1390003 Q5667703
(c(Q502895),P607,Q233360) (c(Q502895),P607,Q2640011) (c(Q502895),P607,Q33132)
action filter_type
action find_reverse
entity prev_answer
relation P607
type Q502895
Those events fought in the [ANSWERS]
[{'concept': 'Q502895'}, 'P607', 'Q233360'] [{'concept': 'Q502895'}, 'P607', 'Q2640011'] [{'concept': 'Q502895'}, 'P607', 'Q33132']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . VALUES ( ?i ) { ( resource:Q48776 ) ( resource:Q4871474 ) ( resource:Q3297425 ) } . ?l property:P607 ?i }
Schuyler Hamilton Charles W. Phifer Robert V. Richardson James W. Archer William H. Worthington Martin E. Green Louis Hébert Felix Zollicoffer George Meade Holman S. Melcher Williams Carter Wickham William Henry Jackson Collett Leventhorpe Richard Enderlin Leopold von Gilsa Chester S. Furman John C. Bates Carle Augustus Woodruff Harrison Jeffords James Edward Carpenter Joseph H. De Castro Thomas O. Seaver Joseph B. Kershaw Francis A. Waller Frank Furness Paul Jones Semmes Richard Conner Edward E. Cross Benjamin F. Rittenhouse Jefferson Coates Alonzo Cushing Orland Smith J. Johnston Pettigrew Abner Monroe Perrin Elijah W. Bacon Francis C. Barlow Harry C. Egbert
Those events fought in the Francis C. Barlow, George Meade and Felix Zollicoffer
Francis C. Barlow George Meade Felix Zollicoffer
action filter_type
action find_reverse
entity prev_answer
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Second Battle of Corinth'] [{'concept': 'common name'}, 'conflict', 'Battle of Barbourville'] [{'concept': 'common name'}, 'conflict', 'Battle of Gettysburg']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . VALUES ( ?i ) { ( resource:Battle_of_Palmito_Ranch ) ( resource:Battle_of_Kolb's_Farm ) ( resource:Centralia_Massacre ) } . ?l property:conflict ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q297121
P241
Q781132
USER
Which military branch is George Meade affiliated to ?
(Q297121,P241,c(Q781132))
action filter_type
action find
entity Q297121
relation P241
type Q781132
['Q297121', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?s WHERE { resource:Q297121 property:P241 ?s . ?s rdf:type ontology:Q781132 }
George Meade
action filter_type
action find
entity George Meade
relation military branch
type military branch
['George Meade', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?s WHERE { resource:George_Meade property:military_branch ?s . ?s rdf:type ontology:military_branch }
[]
military branch
Q9212
SYSTEM
United States Army
Q9212
(Q297121,P241,c(Q781132))
action filter_type
action find
entity Q297121
relation P241
type Q781132
George Meade is affiliated to [ANSWER]
['Q297121', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?s WHERE { resource:Q297121 property:P241 ?s . ?s rdf:type ontology:Q781132 }
United States Army
George Meade is affiliated to United States Army
United States Army
action filter_type
action find
entity George Meade
relation military branch
type military branch
['George Meade', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?s WHERE { resource:George_Meade property:military_branch ?s . ?s rdf:type ontology:military_branch }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7259933
Q781132
USER
And also tell me about Punch Dickins?
(Q7259933,P241,c(Q781132))
action filter_type
action find
entity Q7259933
relation P241
type Q781132
['Q7259933', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q781132 . resource:Q7259933 property:P241 ?o }
Punch Dickins
action filter_type
action find
entity Punch Dickins
relation military branch
type military branch
['Punch Dickins', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:military_branch . resource:Punch_Dickins property:military_branch ?o }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q7259933,P241,c(Q781132))
action filter_type
action find
entity Q7259933
relation P241
type Q781132
[ANSWER]
['Q7259933', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q781132 . resource:Q7259933 property:P241 ?o }
British Army
British Army
action filter_type
action find
entity Punch Dickins
relation military branch
type military branch
['Punch Dickins', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:military_branch . resource:Punch_Dickins property:military_branch ?o }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q895526 Q781132 Q781132
USER
How many military branches are a component of less number of authority organs and military branches than that military branch ?
(c(Q781132),P361,c(Q895526)|c(Q781132))
action count
action less
action union
action find_tuple_counts
relation P361
type Q781132
type Q895526
action find_tuple_counts
relation P361
type Q781132
type Q781132
action count
action filter_multi_types
action find
entity Q222595
relation P361
type Q895526
type Q781132
[{'concept': 'Q781132'}, 'P361', [{'concept': 'Q895526'}, {'concept': 'Q781132'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?p ) WHERE { { ?t property:P361 ?d . ?t rdf:type ontology:Q781132 . ?d rdf:type ontology:Q895526 } UNION { ?t property:P361 ?d . ?t rdf:type ontology:Q781132 . ?d rdf:type ontology:Q781132 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { VALUES ( ?a ) { ( ontology:Q781132 ) ( ontology:Q895526 ) } . ?o rdf:type ?a } . resource:Q222595 property:P361 ?o } } . FILTER ( ?p < ?h ) }
action count
action less
action union
action find_tuple_counts
relation part of
type military branch
type authority organ
action find_tuple_counts
relation part of
type military branch
type military branch
action count
action filter_multi_types
action find
entity British Army
relation part of
type authority organ
type military branch
[{'concept': 'military branch'}, 'part of', [{'concept': 'authority organ'}, {'concept': 'military branch'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?p ) WHERE { { ?t property:part_of ?d . ?t rdf:type ontology:military_branch . ?d rdf:type ontology:authority_organ } UNION { ?t property:part_of ?d . ?t rdf:type ontology:military_branch . ?d rdf:type ontology:military_branch } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { VALUES ( ?a ) { ( ontology:military_branch ) ( ontology:authority_organ ) } . ?o rdf:type ?a } . resource:British_Army property:part_of ?o } } . FILTER ( ?p < ?h ) }
[]
authority organ military branch military branch
SYSTEM
242
Q222595 Q56015 Q4855270 Q704397 Q16010756 Q4114435 Q6641434 Q5290731 Q6047425 Q5370743 Q676404 Q12645011 Q1137373 Q1363476 Q248989 Q18596375 Q18601754 Q217406 Q18706531 Q18610096 Q356359 Q18610098 Q376676 Q18601907 Q2490375 Q18601902 Q2505986 Q3277832 Q15885502 Q2383264 Q1076619 Q4633784 Q2711719 Q741691 Q18668466 Q7574566 Q4114441 Q4774797 Q25436 Q1401100 Q6068085 Q3068744 Q643834 Q1370337 Q6510939 Q4637390 Q5524457 Q932840 Q192366 Q17597972 Q2408298 Q208711 Q3848123 Q465283 Q3848121 Q6082582 Q3480057 Q897614 Q2630039 Q483268 Q1815399 Q4419309 Q2387294 Q1129369 Q18615980 Q4948888 Q2258261 Q2078095 Q5555333 Q18612015 Q4447363 Q18612288 Q16960948 Q2055634 Q19344622 Q18611816 Q1318378 Q919292 Q1187401 Q488756 Q2071948 Q3124137 Q3293231 Q6025264 Q1499997 Q1188381 Q4115107 Q15059515 Q7406484 Q1426835 Q7275540 Q2993856 Q1491482 Q457188 Q13423902 Q6479134 Q4114459 Q4114457 Q604425 Q4631091 Q2292358 Q11218 Q18640848 Q2349884 Q18643350 Q7373859 Q1358152 Q5985661 Q355771 Q1067064 Q2074039 Q267167 Q18615977 Q702116 Q17605054 Q18706999 Q1322103 Q796754 Q11322507 Q2670650 Q1799545 Q10497058 Q781360 Q18611637 Q18696932 Q18706763 Q2883880 Q1547773 Q18676717 Q16492183 Q8501879 Q18612033 Q1678316 Q557432 Q3657642 Q18600123 Q508647 Q311381 Q1038047 Q833040 Q2984556 Q2575188 Q4447370 Q2257572 Q4447372 Q889751 Q2704661 Q18597127 Q898671 Q2862841 Q19247539 Q701923 Q1750688 Q1311627 Q18597663 Q4114434 Q17069134 Q2083573 Q4642716 Q18696718 Q1546449 Q2626138 Q755179 Q63481 Q2745472 Q2301347 Q4709134 Q20894979 Q56018 Q9212 Q1046947 Q257736 Q190949 Q4447361 Q11220 Q2526431 Q2016459 Q1753805 Q17584707 Q2594652 Q792296 Q1141396 Q4117226 Q682152 Q1953312 Q18640177 Q1951484 Q18600100 Q18640173 Q172771 Q1550893 Q18640276 Q675932 Q6448938 Q7125810 Q2558747 Q5403575 Q3079743 Q2528358 Q2905423 Q18669736 Q6497421 Q4939559 Q2006452 Q4925654 Q382551 Q15901085 Q2862927 Q2985739 Q4447359 Q1777326 Q163416 Q1130695 Q5610863 Q17049310 Q383108 Q25387 Q18640167 Q18640164 Q18619862 Q1370395 Q1366319 Q2370391 Q2492012 Q4947401 Q151701 Q796411 Q3293247 Q588089 Q17111011 Q510534 Q18668460 Q18707076 Q2046686 Q18129370 Q1674702 Q575932 Q18707175 Q1427990 Q569328 Q16514728 Q18597159
(c(Q781132),P361,c(Q895526)|c(Q781132))
action count
action less
action union
action find_tuple_counts
relation P361
type Q781132
type Q895526
action find_tuple_counts
relation P361
type Q781132
type Q781132
action count
action filter_multi_types
action find
entity Q222595
relation P361
type Q895526
type Q781132
[ANSWER]
[{'concept': 'Q781132'}, 'P361', [{'concept': 'Q895526'}, {'concept': 'Q781132'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?p ) WHERE { { ?t property:P361 ?d . ?t rdf:type ontology:Q781132 . ?d rdf:type ontology:Q895526 } UNION { ?t property:P361 ?d . ?t rdf:type ontology:Q781132 . ?d rdf:type ontology:Q781132 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { VALUES ( ?a ) { ( ontology:Q781132 ) ( ontology:Q895526 ) } . ?o rdf:type ?a } . resource:Q222595 property:P361 ?o } } . FILTER ( ?p < ?h ) }
British Army German Navy Bangladesh Army Republic of China Army Djiboutian Army Royal Naval Force Royal Thai Air Force Commando Company Dominican Army German Army Special Boarding Unit Spanish Navy Wolves Libyan Army Korean People's Navy Polish Land Forces Army of Burkina Faso Congolese Navy French Navy 23rd Infantry Brigade Equatorial Guinean Army Indian Navy Equatorial Guinean Navy Albanian Naval Force Revolutionary Navy Royal Cambodian Army Revolutionary Army National Army of Venezuela Hungarian Ground Forces Spetsnaz GRU Finnish Army French Army 2nd Massachusetts Regiment Lithuanian Naval Force Royal Australian Navy National Army Force of Côte d'Ivoire Special Forces Brigade Naval Force of El Salvador Antigua and Barbuda Regiment Canadian Army Myanmar Army Iraqi Special Operations Forces Syrian Arab Army German Navy Estonian Navy Lebanese Special Operations Command 40 Commando Garud Commando Force Ukrainian Navy Royal Bahraini Army Angolan Army Islamic Republic of Iran Navy Chilean Navy Kazakh Naval Force Russian Navy United Arab Emirates Navy Islamic Republic of Iran Air Defense Force Division Action Iraqi Army New Zealand Army Republic of Korea Army South African Army Kazakh Air and Air Defence Forces Romanian Naval Forces Hellenic Navy Gambian Navy Botswana Ground Force Pakistan Navy Pakistan Army Ghana Army Military Health Service Lebanese Ground Forces Gabonese Navy Chadian ground forces Royal Bahrain Naval Force naval reserve force Naval Unit Republic of Fiji Military Forces Recherche Assistance Intervention Dissuasion Ecuadorian Navy People's Liberation Army Ground Force Republic of Korea Navy Finnish Navy Dominican Navy Bangladesh Navy Ottoman Army Lithuanian Land Force Bulgarian Navy National Army of Colombia Myanmar Navy Salvadoran Army anti-aircraft artillery RAF Regiment Azerbaijani Navy Lao People's Navy Prussian Navy Czech Land Forces Egyptian Army Eritrean Navy Djiboutian Navy Coast Guard of Georgia 21st Continental Regiment Brazilian Army United States Marine Corps Bissau-Guinean Navy Croatian Navy Islamic Republic of Iran Ground Force Royal Brunei Land Forces Korean People's Army Ground Force Iceland Air Defence System Indian Army United States Special Operations Command Latvian Land Forces Polish Navy Gambian National Army Republic of China Navy Azerbaijani Air Defence Force 1st Mechanized Infantry Brigade Spanish Army Soviet Navy German Army Navy of the Army of the Guardians of the Islamic Revolution Philippine Army Swedish Airbase Rangers Australian Army Ethiopian Army Lao People's Army Libyan Ground Forces Barbados Regiment Groupes d'Intervention de la Police Nationale Kazakh Ground Forces Honduran Army Ghana Navy Gabonese Army Jagdkommando East German Land Forces Eritrean Army Republican Guard Volksmarine Quds Force Irish Army Italian Navy Azerbaijani Land Force Royal Danish Army Belarusian Army Belgian Land Component Tunisian Army Japan Ground Self-Defense Force Indonesian Navy Cameroon Army Iraqi Navy Congolese Army Ottoman Army German Army Brazilian Navy Syrian Navy Cape Verde National Guard Honduran Navy Force Kenya Army Royal Norwegian Navy 6th Massachusetts Regiment Kyrgyz Army Hellenic Army Armenian Army People's Liberation Army Navy National Gendarmerie Intervention Group Chilean Army Argentine Army Albanian Land Force Malian Army Joint Medical Service United States Army Royal Marines Lithuanian Special Operations Force Vietnamese Independence League Algerian People's National Army United States Navy National Navy of Colombia Polish Special Forces Croatian Army Benin Army Naval Service Belgian Naval Component Swedish Navy Royal Jordanian Land Force Ukrainian Ground Forces Bulgarian Land Forces Guinean Navy Georgian Land Forces Central African Army People's Army of Guinea Royal Navy Grupo Especial de Operaciones Bissau-Guinean Army Kenya Navy Kuwaiti Army Pakistan Marines Romanian Land Forces Ethiopian Navy Kuwait Naval Force Mexican Navy Lebanese Navy Jamaica Regiment Special Tasks Unit Bolivian Army Royal Danish Navy Royal Cambodian Navy Egyptian Navy Russian special operations forces Indonesian Army Egyptian Air Defense Command Austrian Land Forces Argentine Navy 1st Cavalry Army Royal Brunei Navy Ground Forces of the Army of the Guardians of the Islamic Revolution Angolan Navy Afghan National Army Royal Canadian Navy Navy of National Defense National Army of Guatemala Georgian Naval Forces Estonian Land Forces Libyan Navy Royal Bhutan Army Swedish Army Bosnian Ground Forces Kriegsmarine Italian Army Benin Naval Forces Portuguese Navy Navy of the Democratic Republic of the Congo Israeli Navy National Navy of Côte d'Ivoire Malagasy Army Cyprus Naval Command Philippine Commonwealth Army GOC Army Headquarters Royal New Zealand Navy Malawi Army Naval Detachment Women's Hospital Corps Air Force and Anti-Air Defence Brigade Tanzania Naval Command Cameroon Navy
242
action count
action less
action union
action find_tuple_counts
relation part of
type military branch
type authority organ
action find_tuple_counts
relation part of
type military branch
type military branch
action count
action filter_multi_types
action find
entity British Army
relation part of
type authority organ
type military branch
[{'concept': 'military branch'}, 'part of', [{'concept': 'authority organ'}, {'concept': 'military branch'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?p ) WHERE { { ?t property:part_of ?d . ?t rdf:type ontology:military_branch . ?d rdf:type ontology:authority_organ } UNION { ?t property:part_of ?d . ?t rdf:type ontology:military_branch . ?d rdf:type ontology:military_branch } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { VALUES ( ?a ) { ( ontology:military_branch ) ( ontology:authority_organ ) } . ?o rdf:type ?a } . resource:British_Army property:part_of ?o } } . FILTER ( ?p < ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q9212
P180
Q7725634 Q2342494
USER
How many literary works and collectables depict United States Army ?
(c(Q7725634),P180,Q9212) (c(Q2342494),P180,Q9212)
action count
action union
action filter_type
action find_reverse
entity Q9212
relation P180
type Q7725634
action filter_type
action find_reverse
entity Q9212
relation P180
type Q2342494
[{'concept': 'Q7725634'}, 'P180', 'Q9212'] [{'concept': 'Q2342494'}, 'P180', 'Q9212']
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } }
United States Army
action count
action union
action filter_type
action find_reverse
entity United States Army
relation depicts
type literary work
action filter_type
action find_reverse
entity United States Army
relation depicts
type collectable
[{'concept': 'literary work'}, 'depicts', 'United States Army'] [{'concept': 'collectable'}, 'depicts', 'United States Army']
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:collectable ) ( ontology:literary_work ) } }
[]
literary work collectable
SYSTEM
1 literary works and 4 collectables
Q15060532 Q15060548 Q15060596 Q15060485 Q15065792
(c(Q7725634),P180,Q9212) (c(Q2342494),P180,Q9212)
action count
action union
action filter_type
action find_reverse
entity Q9212
relation P180
type Q7725634
action filter_type
action find_reverse
entity Q9212
relation P180
type Q2342494
[ANSWER]
[{'concept': 'Q7725634'}, 'P180', 'Q9212'] [{'concept': 'Q2342494'}, 'P180', 'Q9212']
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } }
US Airborne Units in the Mediterranean Theater 1942-44 US Armored Divisions US Army Infantry Divisions 1942-43 The Liberation Trilogy World War II Order of Battle
1 literary works and 4 collectables
action count
action union
action filter_type
action find_reverse
entity United States Army
relation depicts
type literary work
action filter_type
action find_reverse
entity United States Army
relation depicts
type collectable
[{'concept': 'literary work'}, 'depicts', 'United States Army'] [{'concept': 'collectable'}, 'depicts', 'United States Army']
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:collectable ) ( ontology:literary_work ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q297121
P509
Q2057971
USER
What was the cause of death of George Meade ?
(Q297121,P509,c(Q2057971))
action filter_type
action find
entity Q297121
relation P509
type Q2057971
['Q297121', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?q WHERE { resource:Q297121 property:P509 ?q . ?q rdf:type ontology:Q2057971 }
George Meade
action filter_type
action find
entity George Meade
relation cause of death
type health problem
['George Meade', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?q WHERE { resource:George_Meade property:cause_of_death ?q . ?q rdf:type ontology:health_problem }
[]
health problem
Q12192
SYSTEM
pneumonia
Q12192
(Q297121,P509,c(Q2057971))
action filter_type
action find
entity Q297121
relation P509
type Q2057971
The cause of death of George Meade was born [ANSWER]
['Q297121', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?q WHERE { resource:Q297121 property:P509 ?q . ?q rdf:type ontology:Q2057971 }
pneumonia
The cause of death of George Meade was born pneumonia
pneumonia
action filter_type
action find
entity George Meade
relation cause of death
type health problem
['George Meade', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?q WHERE { resource:George_Meade property:cause_of_death ?q . ?q rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12192
P1196
Q502895
USER
Who died as that health problem ?
(c(Q502895),P1196,Q12192)
action filter_type
action find_reverse
entity Q12192
relation P1196
type Q502895
[{'concept': 'Q502895'}, 'P1196', 'Q12192']
SELECT DISTINCT ?p WHERE { ?p property:P1196 resource:Q12192 . ?p rdf:type ontology:Q502895 }
pneumonia
action filter_type
action find_reverse
entity pneumonia
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'pneumonia']
SELECT DISTINCT ?p WHERE { ?p property:manner_of_death resource:pneumonia . ?p rdf:type ontology:common_name }
[]
common name
Q80048 Q50026 Q1475826
SYSTEM
Al Capone, Miyu Matsuki, Melville Davisson Post
Q50026 Q3179042 Q1475826 Q80048
(c(Q502895),P1196,Q12192)
action filter_type
action find_reverse
entity Q12192
relation P1196
type Q502895
[ANSWERS] died as that health problem
[{'concept': 'Q502895'}, 'P1196', 'Q12192']
SELECT DISTINCT ?p WHERE { ?p property:P1196 resource:Q12192 . ?p rdf:type ontology:Q502895 }
Miyu Matsuki Jimmy Evert Melville Davisson Post Al Capone
Al Capone, Miyu Matsuki and Melville Davisson Post died as that health problem
Al Capone Miyu Matsuki Melville Davisson Post
action filter_type
action find_reverse
entity pneumonia
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'pneumonia']
SELECT DISTINCT ?p WHERE { ?p property:manner_of_death resource:pneumonia . ?p rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q80048
P22
Q502895
USER
Which person has that one as father ?
(c(Q502895),P22,Q80048)
action filter_type
action find_reverse
entity Q80048
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q80048']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q80048 . ?w rdf:type ontology:Q502895 }
Al Capone
action filter_type
action find_reverse
entity Al Capone
relation father
type common name
[{'concept': 'common name'}, 'father', 'Al Capone']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Al_Capone . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1475826
SYSTEM
Did you mean Melville Davisson Post ?
Q80048 Q50026 Q1475826
(c(Q502895),P22,Q80048) (c(Q502895),P22,Q50026) (c(Q502895),P22,Q1475826)
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q80048'] [{'concept': 'Q502895'}, 'P22', 'Q50026'] [{'concept': 'Q502895'}, 'P22', 'Q1475826']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q80048 . ?w rdf:type ontology:Q502895 }
Al Capone Miyu Matsuki Melville Davisson Post
Did you mean Melville Davisson Post ?
Melville Davisson Post
[{'concept': 'common name'}, 'father', 'Al Capone'] [{'concept': 'common name'}, 'father', 'Miyu Matsuki'] [{'concept': 'common name'}, 'father', 'Melville Davisson Post']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Al_Capone . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Al Capone. Could you tell me the answer for that?
(c(Q502895),P22,Q80048)
Q80048
[{'concept': 'Q502895'}, 'P22', 'Q80048']
[{'concept': 'common name'}, 'father', 'Al Capone']
[]
Q4710230
SYSTEM
Albert Francis "Sonny" Capone
Q4710230
(c(Q502895),P22,Q80048)
action filter_type
action find_reverse
entity Q80048
relation P22
type Q502895
[ANSWER] has that one as father
[{'concept': 'Q502895'}, 'P22', 'Q80048']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q80048 . ?w rdf:type ontology:Q502895 }
Albert Francis "Sonny" Capone
Albert Francis "Sonny" Capone has that one as father
Albert Francis "Sonny" Capone
action filter_type
action find_reverse
entity Al Capone
relation father
type common name
[{'concept': 'common name'}, 'father', 'Al Capone']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Al_Capone . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15416
USER
How many television programs had their voice dubbing done by atleast 16 people ?
(c(Q15416),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q15416
type Q502895
value 16
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?i ) WHERE { ?c property:P725 ?m . ?c rdf:type ontology:Q15416 . ?m rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?i >= 16 ) }
action count
action atleast
action find_tuple_counts
relation voice actor
type television program
type common name
value 16
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?i ) WHERE { ?c property:voice_actor ?m . ?c rdf:type ontology:television_program . ?m rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?i >= 16 ) }
[]
common name television program
SYSTEM
3
Q23558 Q18571935 Q18553975
(c(Q15416),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q15416
type Q502895
value 16
[ANSWER]
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?i ) WHERE { ?c property:P725 ?m . ?c rdf:type ontology:Q15416 . ?m rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?i >= 16 ) }
House The Big O Soul Eater
3
action count
action atleast
action find_tuple_counts
relation voice actor
type television program
type common name
value 16
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?i ) WHERE { ?c property:voice_actor ?m . ?c rdf:type ontology:television_program . ?m rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?i >= 16 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q217683 Q1443106
P27
Q15617994
USER
Which administrative territories are the native countriesof Frank Crawford Armstrong and Paul Bremer ?
AND((Q1443106,P27,c(Q15617994)), (Q217683,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1443106
relation P27
action find
entity Q217683
relation P27
type Q15617994
{'AND': [['Q1443106', 'P27', {'concept': 'Q15617994'}], ['Q217683', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { resource:Q1443106 property:P27 ?p . resource:Q217683 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Paul Bremer Frank Crawford Armstrong
action filter_type
action intersection
action find
entity Frank Crawford Armstrong
relation country of citizenship
action find
entity Paul Bremer
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Frank Crawford Armstrong', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Paul Bremer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:Frank_Crawford_Armstrong property:country_of_citizenship ?p . resource:Paul_Bremer property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q1443106,P27,c(Q15617994)), (Q217683,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1443106
relation P27
action find
entity Q217683
relation P27
type Q15617994
The [ANSWER] is the native countriesof Frank Crawford Armstrong and Paul Bremer
{'AND': [['Q1443106', 'P27', {'concept': 'Q15617994'}], ['Q217683', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { resource:Q1443106 property:P27 ?p . resource:Q217683 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
United States of America
The United States of America is the native countriesof Frank Crawford Armstrong and Paul Bremer
United States of America
action filter_type
action intersection
action find
entity Frank Crawford Armstrong
relation country of citizenship
action find
entity Paul Bremer
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Frank Crawford Armstrong', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Paul Bremer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:Frank_Crawford_Armstrong property:country_of_citizenship ?p . resource:Paul_Bremer property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]