Simple Question (Direct)
Simple Question
Q16000372
P410
Q4189293
USER
What is the title conferred upon Howard Reid ?
(Q16000372,P410,c(Q4189293))
action filter_type
action find
entity Q16000372
relation P410
type Q4189293
['Q16000372', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?s WHERE { resource:Q16000372 property:P410 ?s . ?s rdf:type ontology:Q4189293 }
Howard Reid
action filter_type
action find
entity Howard Reid
relation military rank
type title
['Howard Reid', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?s WHERE { resource:Howard_Reid property:military_rank ?s . ?s rdf:type ontology:title }
[]
title
Q214443
SYSTEM
vice admiral
Q214443
(Q16000372,P410,c(Q4189293))
action filter_type
action find
entity Q16000372
relation P410
type Q4189293
The title conferred upon Howard Reid is a [ANSWER]
['Q16000372', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?s WHERE { resource:Q16000372 property:P410 ?s . ?s rdf:type ontology:Q4189293 }
vice admiral
The title conferred upon Howard Reid is a vice admiral
vice admiral
action filter_type
action find
entity Howard Reid
relation military rank
type title
['Howard Reid', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?s WHERE { resource:Howard_Reid property:military_rank ?s . ?s rdf:type ontology:title }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16000372
P241
Q781132
USER
Which military branch contains that person as its part ?
(Q214443,P241,c(Q781132))
action filter_type
action find
entity Q16000372
relation P241
type Q781132
['Q214443', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q781132 . resource:Q16000372 property:P241 ?h }
Howard Reid
action filter_type
action find
entity Howard Reid
relation military branch
type military branch
['vice admiral', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:military_branch . resource:Howard_Reid property:military_branch ?h }
[]
military branch
Q25387
SYSTEM
Royal Canadian Navy
Q25387
(Q214443,P241,c(Q781132))
action filter_type
action find
entity Q16000372
relation P241
type Q781132
[ANSWER] contains that person as its part
['Q214443', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q781132 . resource:Q16000372 property:P241 ?h }
Royal Canadian Navy
Royal Canadian Navy contains that person as its part
Royal Canadian Navy
action filter_type
action find
entity Howard Reid
relation military branch
type military branch
['vice admiral', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:military_branch . resource:Howard_Reid property:military_branch ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q25387
P137
Q2235308
USER
Which ship types were operated by that military branch ?
(c(Q2235308),P137,Q25387)
action filter_type
action find_reverse
entity Q25387
relation P137
type Q2235308
[{'concept': 'Q2235308'}, 'P137', 'Q25387']
SELECT DISTINCT ?b WHERE { ?b property:P137 resource:Q25387 . ?b rdf:type ontology:Q2235308 }
Royal Canadian Navy
action filter_type
action find_reverse
entity Royal Canadian Navy
relation operator
type ship type
[{'concept': 'ship type'}, 'operator', 'Royal Canadian Navy']
SELECT DISTINCT ?b WHERE { ?b property:operator resource:Royal_Canadian_Navy . ?b rdf:type ontology:ship_type }
[]
ship type
Q652746 Q1564180 Q2591384
SYSTEM
HMS Decoy, HMS Cygnet, HMCS Magnificent
Q5630729 Q5630838 Q16223042 Q16222998 Q5567546 Q16222993 Q16223050 Q2591384 Q7271430 Q17030386 Q16258234 Q471508 Q5630757 Q11713027 Q17018376 Q17017238 Q17018474 Q16223025 Q5630779 Q5630778 Q5630775 Q5630774 Q16223007 Q16958050 Q5630770 Q16223003 Q7671549 Q3334321 Q5633579 Q5630759 Q16223095 Q2023395 Q7231537 Q16988302 Q5630708 Q5630709 Q5630956 Q5630951 Q5630953 Q5630952 Q5630814 Q5630815 Q5630816 Q5630703 Q5630959 Q5630705 Q5630813 Q631605 Q17016464 Q3334319 Q17016607 Q1564715 Q16736175 Q5630921 Q5630923 Q5630927 Q5630928 Q5630887 Q5630884 Q5630883 Q5630882 Q5630881 Q5630880 Q11679131 Q3793015 Q6269418 Q12790618 Q15069271 Q516401 Q12790611 Q12790612 Q12790614 Q12790616 Q12790617 Q3334288 Q3334285 Q3334286 Q3334287 Q3334280 Q3334281 Q5451560 Q5010425 Q5010424 Q5010427 Q16223085 Q5010429 Q5010428 Q4346556 Q5630744 Q16223034 Q5630746 Q5630747 Q5630740 Q5630741 Q16223032 Q16223039 Q5630749 Q2975982 Q2036560 Q11707151 Q17018669 Q5630968 Q5630969 Q5630964 Q1564183 Q1564180 Q5630967 Q612393 Q5630961 Q5630963 Q5630842 Q5630841 Q5630840 Q5630847 Q5630845 Q5630844 Q5630849 Q5630848 Q5634312 Q3560969 Q4052245 Q11707839 Q4957748 Q7418687 Q5630870 Q16974277 Q2975958 Q5630713 Q993960 Q12790620 Q1537188 Q12790625 Q12790627 Q5630908 Q12790629 Q16958036 Q5630780 Q5630781 Q5630782 Q5630783 Q5630786 Q5630787 Q5630789 Q12790604 Q3334313 Q3334310 Q3334311 Q3334316 Q3334317 Q16223035 Q17019822 Q4870147 Q16223037 Q16208169 Q5630820 Q5014257 Q16223030 Q16223069 Q5630808 Q16958032 Q5630806 Q5630805 Q5630803 Q5630802 Q5630715 Q5630714 Q16995797 Q5630748 Q3788144 Q5630776 Q1531475 Q5009774 Q5630772 Q615525 Q5630933 Q5630932 Q5630931 Q5630930 Q5630937 Q5630935 Q7186743 Q5630939 Q5630938 Q16995846 Q16998057 Q16568730 Q931718 Q16740059 Q9506 Q1258382 Q3334299 Q3334298 Q3334293 Q3334292 Q3334291 Q3334290 Q5010426 Q11703469 Q17007403 Q3010651 Q5631277 Q17018273 Q3792614 Q4670196 Q16208651 Q16223026 Q5630755 Q5630754 Q5630752 Q5630751 Q16223028 Q5633628 Q14883522 Q177552 Q16736283 Q5630972 Q5630971 Q16998784 Q5630875 Q5630873 Q1029315 Q5630871 Q1800912 Q16995900 Q499205 Q6724345 Q5630965 Q5630960 Q12790632 Q5630955 Q12790630 Q12790631 Q24305 Q1084819 Q3792326 Q1564170 Q5630818 Q5630792 Q5630791 Q5630797 Q5630796 Q5630795 Q5630794 Q626386 Q5630799 Q3334308 Q16223070 Q3334305 Q3334304 Q3334301 Q3334300 Q16161783 Q5630707 Q17016046 Q935712 Q5630863 Q12790633 Q500474 Q5630832 Q5630830 Q16997438 Q5630835 Q5630724 Q5630839 Q5630722 Q5630723 Q16223051 Q5630721 Q5630825 Q5630824 Q5630827 Q17017408 Q16223043 Q5568114 Q16996217 Q5630734 Q5630823 Q286526 Q7117093 Q5630768 Q5630739 Q5630906 Q5630904 Q5630905 Q5630903 Q5630901 Q14713882 Q16223062 Q5630909 Q5630762 Q7867398 Q5630763 Q5509072 Q16982786 Q5864573 Q5630765 Q11712772 Q5630696 Q5630694 Q11195149 Q5630699 Q17030394 Q3211329 Q2304194 Q11703440 Q404394 Q16902516 Q3607915 Q16223019 Q16223018 Q17986104 Q16958042 Q16223547 Q5630761 Q16223017 Q16958046 Q16223014 Q1552451 Q5011000 Q4873891 Q7242052 Q4774653 Q3010166 Q4039984 Q4039982 Q4039983 Q3481602 Q5630869 Q5630943 Q1564162 Q5630941 Q5630946 Q1564166 Q5630945 Q5630861 Q16208363 Q5630948 Q16208209 Q5630864 Q5630867 Q5630866 Q5034550 Q17016551 Q15046127 Q17019062 Q5630894 Q5630895 Q5630896 Q5630897 Q5630892 Q2377766 Q8045811 Q5630910 Q17018422 Q1404096 Q18347831 Q3608790 Q16821275 Q5630868 Q5010432 Q5010431 Q1564158 Q16223040 Q16223041 Q5630733 Q5630732 Q5630821 Q16223045 Q5630737 Q5630736 Q16223048 Q16223049 Q5630829 Q5630828 Q17017185 Q17016517 Q17020178 Q17018204 Q11704956 Q12403652 Q5630918 Q1630695 Q503867 Q5630913 Q5630915 Q5630850 Q5630851 Q5630852 Q5630853 Q652746 Q5630857 Q5630859 Q12790626 Q5630831 Q15222439 Q12790628 Q15222435 Q15222434 Q15222437
(c(Q2235308),P137,Q25387)
action filter_type
action find_reverse
entity Q25387
relation P137
type Q2235308
[ANSWERS] were operated by that military branch
[{'concept': 'Q2235308'}, 'P137', 'Q25387']
SELECT DISTINCT ?b WHERE { ?b property:P137 resource:Q25387 . ?b rdf:type ontology:Q2235308 }
HMCS Bras d'Or HMCS Longueuil HMCS The Pas (K168) HMCS Drummondville (J253) Glen-class tug HMCS Prescott (K161) HMCS New Westminster (K228) HMCS Magnificent Quest-class Oceanographic Research Ship HMCS Saint John HMCS Reo II German submarine U-190 HMCS Chaleur HMCS Nene (K270) HMCS Ste. Therese HMCS Runnymede HMCS Strathadam HMCS Hepatica (K159) HMCS Crusader HMCS Crescent HMCS Cormorant HMCS Cormorant HMCS Collingwood (K180) HMCS Coaticook HMCS Comox HMCS Orillia (K119) TR series minesweeping trawler HMCS Yellowknife HMS Olympus HMCS Champlain HMCS Owen Sound (K340) German submarine U-889 Porte-class gate vessel HMCS Jonquiere HMCS Armentières HMCS Arras HMCS Venture HMCS Trillium HMCS Ungava HMCS Toronto HMCS Grilse HMCS Gulnare HMCS Halifax HMCS Anticosti HMCS Vancouver HMCS Antigonish HMCS Granby HMCS Hochelaga HMCS Port Colborne HMCS Winnipeg HMCS Prince Rupert HMS Fortune HMCS Kirkland Lake HMCS Snowberry HMCS St. Boniface HMCS St. Croix HMCS St. Eloi HMCS Prince David HMCS Porte de la Reine HMCS Porte St. Louis HMCS Penetang HMCS Portage HMCS Pictou Endeavour-class oceanographic research ship Restigouche-class Joint Support Ship Project HMCS Louisburg (K401) HMCS Merrittonia HMCS Bonaventure HMCS Mimico (K485) HMCS Lachute (K440) HMCS Giffard (K402) HMCS Hawkesbury HMCS Lindsay (K338) HMCS Edmonton HMCS Brandon HMCS Calgary HMCS Charlottetown HMCS Algonquin HMCS Alberni Fire class fireboat CFAV Firebrand CFAV Firebird CFAV Glendale HMCS Reindeer (S08) CFAV Glenevis CFAV Glendyne HMCS Ontario HMCS Cap de la Madeleine HMCS Lunenburg (K151) HMCS Cape Breton HMCS Cape Breton HMCS Camrose HMCS Canada HMCS Lethbridge (K160) HMCS Saskatoon (K158) HMCS Caribou Canadian River-class destroyer Annapolis-class HMCS Brantford (K218) HMCS Sussexvale HMCS Winnipeg HMCS Windsor HMCS Weyburn HMCS Victoria HMS Cygnet HMCS Windflower HMCS Chicoutimi HMCS Wallaceburg HMCS Wetaskiwin HMCS Mackenzie HMCS Long Branch HMCS Loos HMCS Messines HMCS Margaree HMCS Malaspina HMCS Minas HMCS Mayflower HMS Shearwater HMCS Charlottetown USS Maddox HMCS Baleine Bras d'Or Sankaty HMCS Nootka HMCS Dunver Orca-class patrol vessel HMCS Athabaskan Diadem-class cruiser HMCS North Bay (K339) Iroquois-class HMCS Peterborough HMCS Stellarton (K457) HMCS Sarnia HMCS Strathroy (K455) HMCS Capilano HMCS Curlew HMCS Dauphin HMCS Dawson HMCS Digby HMCS Eastview HMCS Elk HMCS Endeavour HMCS Fergus (K686) HMCS Vancouver HMCS Terra Nova HMCS Summerside HMCS Ville de Québec HMCS Whitehorse HMCS Matapedia (K112) HMCS Victoriaville Battle class HMCS Nanaimo (K101) HMCS Algoma HMCS Huron CSS Acadia HMCS Chicoutimi (K156) HMCS Frontenac (K335) HMCS Givenchy HMCS Buckingham HMCS Gaspe HMCS Galt HMCS Fundy HMCS Galiano HMCS Baffin HMCS Baddeck HMCS La Hulloise HMCS Cape Scott HMCS Magog HMCS Cowichan Kingston-class coastal defence vessel CD-class naval drifter HMCS Constance HMS Express HMCS St. Thomas HMCS St. John's HMCS St. Laurent HMCS St. Julien HMCS Stormont HMCS Stadacona Phoenix-class sloop HMCS Sudbury HMCS Stratford HMCS Lanark HMCS Montreal HMCS Joliette HMCS Haida HMCS St. Pierre HMCS Onondaga HMCS Saskatoon HMCS Moncton HMCS Kingston HMCS Goose Bay HMCS Glace Bay HMCS Fredericton HMCS Fredericton CFAV Glenbrook HMCS Comox (MCB 146) HMCS Lady Nelson HMCS Bras d'Or HMS Algerine HMCS St. Stephen St. Laurent-class destroyer USS Haraden HMCS Barrie HMCS Kamsack (K171) HMCS Chambly HMCS Cayuga HMCS Cedarwood HMCS Cartier HMCS Edmundston (K106) HMS Osiris HMCS Port Arthur Halifax-class frigate HMCS Springhill HMCS Yukon HMCS Ypres HMCS New Waterford HMCS Ottawa HMCS Oshawa HMS Hero HMCS Oriole ARA Independencia HMCS Lasalle HMS Diana Mackenzie-class destroyer HMCS West York HMCS Vimy HMCS Trentonian (K368) HMCS Vegreville HMCS Whitby (K346) HMCS St. Lambert (K343) HMCS Belleville Isles class trawler S-class destroyer HMCS Rainbow HMCS Inch Arran HMCS Eyebright HMCS Esquimalt HMCS Fortune HMCS Fort Erie HMCS Florence HMCS Festubert HMCS Corner Brook HMCS Fort Frances HMCS Shawinigan HMCS Guelph (K687) HMCS Red Deer HMCS Preserver HMCS Nanaimo HMCS Montréal HMCS Arrowhead HMCS Arleux HMCS Orkney HMS Niobe HMCS New Liskeard HMCS Thorlock (K394) HMS Crescent HMCS Laurentian HMCS Kootenay HMCS Matane HMCS Levis HMCS Bittersweet HMCS Loon HMCS Beacon Hill HMCS Beaver HMCS Vancouver (K240) HMCS Battleford HMCS Kenogami HMCS Iroquois HMCS Kentville HMCS Sea Cliff HMCS Ville de Quebec (K242) Glen class tug HMCS Levis HMCS CC-2 HMCS Kapuskasing Protecteur class replenishment oiler P.V. type minesweeping trawler HMCS Columbia HMCS Calgary HMCS Riviere du Loup HMCS Rockcliffe HMCS Rosthern HMCS Rimouski HMCS Restless HMCS Morden (K170) HMCS Woodstock (K238) HMCS Sackville HMCS Chignecto USS Argonaut HMCS Chilliwack Fundy-class minesweeper HMCS Grou HMCS Glace Bay (K414) HMCS Cobalt Canadian Bird-class patrol vessel HMCS Ambler HMCS Agassiz C-class destroyer HMCS Algonquin HMCS Stettler Castle-class corvette coastal defence ship HMCS Border Cities (J344) Flower-class corvette HMCS Valleyfield (K329) HMCS Charlottetown HMCS Fennel (K194) HMCS Dunvegan (K177) HMCS Brockville HMCS Carlplace HMCS Forrest Hill (K486) HMCS Chaudiere HMCS Drumheller (K167) HMCS Chebogue HMCS Brandon (K149) HMS Comet CGS Margaret Bay-class minesweeper Prestonian-class Anticosti-class minesweeper HMCS Regina HMCS Asbestos HMCS Atholl HMCS Beauharnois HMCS Shawinigan (K136) HMCS Oakville HMCS Swansea HMCS Ottawa HMCS Summerside HMCS Timmins HMS Crusader HMCS Thiepval HMCS New Glasgow HMCS Arvida HMCS Tuna HMCS Amherst HMCS Newington HMCS Nipigon HMCS Nipigon Cape-class maintenance ship HMCS Prestonian HMCS La Malbaie HMCS Thetford Mines HMCS Quebec HMCS Quesnel HMCS Raccoon HMCS Regina HMCS Qu'Appelle HMCS Moncton YAG training vessels HMCS Saskatchewan HMCS Stone Town HMCS Toronto HMCS Waskesiu HMCS Cobourg HMCS Moresby HMCS Nootka CFAV Tillicum CFAV Glenside HMCS Halifax HMCS Sherbrooke (K152) HMCS Sorel (K153) HMCS CC-1 HMCS Buctouche HMCS Kamloops HMCS Trail (K174) HMCS CH-15 HMCS CH-14 HMCS Dundas (K229) HMCS Midland (K220) HMCS Kokanee HMCS Kitchener HMCS Royal Mount HMCS Poundmaker HMCS Wentworth HMCS St. Catharines Ville-class tug HMCS Norsyd (K520) HMCS Sioux Motor Torpedo Boat HMS Griffin HMCS Sault Ste. Marie HMCS Shediac HMCS Micmac HMCS Middlesex HMCS Miramichi HMCS Miramichi HMS Decoy HMCS Moose Jaw HMCS Napanee HMCS Parry Sound (K341) HMCS Lady Evelyn HMCS Spikenard (K198) HMCS Smiths Falls (K345) HMCS Clayoquot (J174) HMCS Chedabucto (J168) HMCS Louisburg (K143)
HMS Decoy, HMS Cygnet and HMCS Magnificent were operated by that military branch
HMS Decoy HMS Cygnet HMCS Magnificent
action filter_type
action find_reverse
entity Royal Canadian Navy
relation operator
type ship type
[{'concept': 'ship type'}, 'operator', 'Royal Canadian Navy']
SELECT DISTINCT ?b WHERE { ?b property:operator resource:Royal_Canadian_Navy . ?b rdf:type ontology:ship_type }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P520
Q728 Q17444171 Q2235308
USER
Which ship types have around 2 weapons or models as their armament ?
(c(Q2235308),P520,c(Q728)|c(Q17444171))
action approx
action union
action find_tuple_counts
relation P520
type Q2235308
type Q728
action find_tuple_counts
relation P520
type Q2235308
type Q17444171
value 2
[{'concept': 'Q2235308'}, 'P520', [{'concept': 'Q728'}, {'concept': 'Q17444171'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) ?f WHERE { { ?f property:P520 ?y . ?f rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q728 } UNION { ?f property:P520 ?y . ?y rdf:type ontology:Q17444171 . ?f rdf:type ontology:Q2235308 } } GROUP BY ?f } . FILTER ( ?q = 2 ) }
action approx
action union
action find_tuple_counts
relation armament
type ship type
type weapon
action find_tuple_counts
relation armament
type ship type
type model
value 2
[{'concept': 'ship type'}, 'armament', [{'concept': 'weapon'}, {'concept': 'model'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) ?f WHERE { { ?f property:armament ?y . ?f rdf:type ontology:ship_type . ?y rdf:type ontology:weapon } UNION { ?f property:armament ?y . ?y rdf:type ontology:model . ?f rdf:type ontology:ship_type } } GROUP BY ?f } . FILTER ( ?q = 2 ) }
[]
weapon model ship type
Q46159 Q521029 Q11712993
SYSTEM
USCGC Southwind, Kirov-class battlecruiser, HMS Cayman
Q46159 Q521029 Q1788034 Q761869 Q1734868 Q4352800 Q2029200 Q4347031 Q1230074 Q10513230 Q11712993 Q206562 Q962041 Q699713 Q1631200 Q694531 Q4352906
(c(Q2235308),P520,c(Q728)|c(Q17444171))
action approx
action union
action find_tuple_counts
relation P520
type Q2235308
type Q728
action find_tuple_counts
relation P520
type Q2235308
type Q17444171
value 2
[ANSWERS] have around 2 weapons or models as their armament
[{'concept': 'Q2235308'}, 'P520', [{'concept': 'Q728'}, {'concept': 'Q17444171'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) ?f WHERE { { ?f property:P520 ?y . ?f rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q728 } UNION { ?f property:P520 ?y . ?y rdf:type ontology:Q17444171 . ?f rdf:type ontology:Q2235308 } } GROUP BY ?f } . FILTER ( ?q = 2 ) }
USCGC Southwind Kirov-class battlecruiser Kresta I-class cruiser Grisha class corvette Kashin-class destroyer HMS Småland HMS Göta Lejon HMS Tre Kronor Kresta II-class cruiser HMS Halland HMS Cayman Kotlin-class destroyer Halland-class destroyer Parchim class corvette Kara-class cruiser Koni-class frigate HMS Sundsvall
USCGC Southwind, Kirov-class battlecruiser and HMS Cayman have around 2 weapons or models as their armament
USCGC Southwind Kirov-class battlecruiser HMS Cayman
action approx
action union
action find_tuple_counts
relation armament
type ship type
type weapon
action find_tuple_counts
relation armament
type ship type
type model
value 2
[{'concept': 'ship type'}, 'armament', [{'concept': 'weapon'}, {'concept': 'model'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) ?f WHERE { { ?f property:armament ?y . ?f rdf:type ontology:ship_type . ?y rdf:type ontology:weapon } UNION { ?f property:armament ?y . ?y rdf:type ontology:model . ?f rdf:type ontology:ship_type } } GROUP BY ?f } . FILTER ( ?q = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q521029
P520
Q12796 Q728
USER
How many guns or weapons are used by Kirov-class battlecruiser ?
(Q521029,P520,c(Q12796)) (Q521029,P520,c(Q728))
action count
action union
action filter_type
action find
entity Q521029
relation P520
type Q12796
action filter_type
action find
entity Q521029
relation P520
type Q728
['Q521029', 'P520', {'concept': 'Q12796'}] ['Q521029', 'P520', {'concept': 'Q728'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { resource:Q521029 property:P520 ?r . ?r rdf:type ontology:Q12796 } UNION { resource:Q521029 property:P520 ?r . ?r rdf:type ontology:Q728 } }
Kirov-class battlecruiser
action count
action union
action filter_type
action find
entity Kirov-class battlecruiser
relation armament
type gun
action filter_type
action find
entity Kirov-class battlecruiser
relation armament
type weapon
['Kirov-class battlecruiser', 'armament', {'concept': 'gun'}] ['Kirov-class battlecruiser', 'armament', {'concept': 'weapon'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { resource:Kirov-class_battlecruiser property:armament ?r . ?r rdf:type ontology:gun } UNION { resource:Kirov-class_battlecruiser property:armament ?r . ?r rdf:type ontology:weapon } }
[]
gun weapon
SYSTEM
3
Q247333 Q294067 Q908161
(Q521029,P520,c(Q12796)) (Q521029,P520,c(Q728))
action count
action union
action filter_type
action find
entity Q521029
relation P520
type Q12796
action filter_type
action find
entity Q521029
relation P520
type Q728
[ANSWER]
['Q521029', 'P520', {'concept': 'Q12796'}] ['Q521029', 'P520', {'concept': 'Q728'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { resource:Q521029 property:P520 ?r . ?r rdf:type ontology:Q12796 } UNION { resource:Q521029 property:P520 ?r . ?r rdf:type ontology:Q728 } }
RBU-6000 AK-630 RBU-1000
3
action count
action union
action filter_type
action find
entity Kirov-class battlecruiser
relation armament
type gun
action filter_type
action find
entity Kirov-class battlecruiser
relation armament
type weapon
['Kirov-class battlecruiser', 'armament', {'concept': 'gun'}] ['Kirov-class battlecruiser', 'armament', {'concept': 'weapon'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { resource:Kirov-class_battlecruiser property:armament ?r . ?r rdf:type ontology:gun } UNION { resource:Kirov-class_battlecruiser property:armament ?r . ?r rdf:type ontology:weapon } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q141667
P361
Q43229 Q5962346 Q2235308
USER
Which ship types are parts of more number of organizations or classification schemes than HMS Terror ?
(c(Q2235308),P361,c(Q43229)|c(Q5962346))
action greater
action union
action find_tuple_counts
relation P361
type Q2235308
type Q43229
action find_tuple_counts
relation P361
type Q2235308
type Q5962346
action count
action filter_multi_types
action find
entity Q141667
relation P361
type Q43229
type Q5962346
[{'concept': 'Q2235308'}, 'P361', [{'concept': 'Q43229'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { { ?g rdf:type ?r . VALUES ( ?r ) { ( ontology:Q43229 ) ( ontology:Q5962346 ) } } . resource:Q141667 property:P361 ?g } } . FILTER ( ?o > ?s ) . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?o ) WHERE { { ?c property:P361 ?z . ?c rdf:type ontology:Q2235308 . ?z rdf:type ontology:Q43229 } UNION { ?c property:P361 ?z . ?c rdf:type ontology:Q2235308 . ?z rdf:type ontology:Q5962346 } } GROUP BY ?c } }
HMS Terror
action greater
action union
action find_tuple_counts
relation part of
type ship type
type organization
action find_tuple_counts
relation part of
type ship type
type classification scheme
action count
action filter_multi_types
action find
entity HMS Terror
relation part of
type organization
type classification scheme
[{'concept': 'ship type'}, 'part of', [{'concept': 'organization'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { { ?g rdf:type ?r . VALUES ( ?r ) { ( ontology:organization ) ( ontology:classification_scheme ) } } . resource:HMS_Terror property:part_of ?g } } . FILTER ( ?o > ?s ) . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?o ) WHERE { { ?c property:part_of ?z . ?c rdf:type ontology:ship_type . ?z rdf:type ontology:organization } UNION { ?c property:part_of ?z . ?c rdf:type ontology:ship_type . ?z rdf:type ontology:classification_scheme } } GROUP BY ?c } }
[]
organization classification scheme ship type
Q666573 Q568690 Q571254
SYSTEM
German submarine U-38, German submarine U-42, German submarine U-43
Q666573 Q568690 Q571254 Q10513252 Q549323 Q666604 Q633215 Q3177009 Q571295 Q549368 Q3508854
(c(Q2235308),P361,c(Q43229)|c(Q5962346))
action greater
action union
action find_tuple_counts
relation P361
type Q2235308
type Q43229
action find_tuple_counts
relation P361
type Q2235308
type Q5962346
action count
action filter_multi_types
action find
entity Q141667
relation P361
type Q43229
type Q5962346
[ANSWERS] are parts of more number of organizations or classification schemes than HMS Terror
[{'concept': 'Q2235308'}, 'P361', [{'concept': 'Q43229'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { { ?g rdf:type ?r . VALUES ( ?r ) { ( ontology:Q43229 ) ( ontology:Q5962346 ) } } . resource:Q141667 property:P361 ?g } } . FILTER ( ?o > ?s ) . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?o ) WHERE { { ?c property:P361 ?z . ?c rdf:type ontology:Q2235308 . ?z rdf:type ontology:Q43229 } UNION { ?c property:P361 ?z . ?c rdf:type ontology:Q2235308 . ?z rdf:type ontology:Q5962346 } } GROUP BY ?c } }
German submarine U-38 German submarine U-42 German submarine U-43 HMS Händig German submarine U-44 German submarine U-37 German submarine U-39 Odyssey German submarine U-41 German submarine U-40 Sea Launch Commander
German submarine U-38, German submarine U-42 and German submarine U-43 are parts of more number of organizations or classification schemes than HMS Terror
German submarine U-38 German submarine U-42 German submarine U-43
action greater
action union
action find_tuple_counts
relation part of
type ship type
type organization
action find_tuple_counts
relation part of
type ship type
type classification scheme
action count
action filter_multi_types
action find
entity HMS Terror
relation part of
type organization
type classification scheme
[{'concept': 'ship type'}, 'part of', [{'concept': 'organization'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { { ?g rdf:type ?r . VALUES ( ?r ) { ( ontology:organization ) ( ontology:classification_scheme ) } } . resource:HMS_Terror property:part_of ?g } } . FILTER ( ?o > ?s ) . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?o ) WHERE { { ?c property:part_of ?z . ?c rdf:type ontology:ship_type . ?z rdf:type ontology:organization } UNION { ?c property:part_of ?z . ?c rdf:type ontology:ship_type . ?z rdf:type ontology:classification_scheme } } GROUP BY ?c } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q5014271
P361
Q43229 Q5962346 Q2235308
USER
And how about CSS Chattahoochee?
(c(Q2235308),P361,c(Q43229)|c(Q5962346))
action greater
action union
action find_tuple_counts
relation P361
type Q2235308
type Q43229
action find_tuple_counts
relation P361
type Q2235308
type Q5962346
action count
action filter_multi_types
action find
entity Q5014271
relation P361
type Q43229
type Q5962346
[{'concept': 'Q2235308'}, 'P361', [{'concept': 'Q43229'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Q5014271 property:P361 ?a . { ?a rdf:type ?x . VALUES ( ?x ) { ( ontology:Q5962346 ) ( ontology:Q43229 ) } } } } . FILTER ( ?u > ?y ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?k WHERE { { ?k property:P361 ?g . ?g rdf:type ontology:Q43229 . ?k rdf:type ontology:Q2235308 } UNION { ?k property:P361 ?g . ?k rdf:type ontology:Q2235308 . ?g rdf:type ontology:Q5962346 } } GROUP BY ?k } }
CSS Chattahoochee
action greater
action union
action find_tuple_counts
relation part of
type ship type
type organization
action find_tuple_counts
relation part of
type ship type
type classification scheme
action count
action filter_multi_types
action find
entity CSS Chattahoochee
relation part of
type organization
type classification scheme
[{'concept': 'ship type'}, 'part of', [{'concept': 'organization'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:CSS_Chattahoochee property:part_of ?a . { ?a rdf:type ?x . VALUES ( ?x ) { ( ontology:classification_scheme ) ( ontology:organization ) } } } } . FILTER ( ?u > ?y ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?k WHERE { { ?k property:part_of ?g . ?g rdf:type ontology:organization . ?k rdf:type ontology:ship_type } UNION { ?k property:part_of ?g . ?k rdf:type ontology:ship_type . ?g rdf:type ontology:classification_scheme } } GROUP BY ?k } }
[]
organization classification scheme ship type
Q666573 Q568690 Q571254
SYSTEM
German submarine U-38, German submarine U-42, German submarine U-43
Q666573 Q568690 Q571254 Q10513252 Q549323 Q666604 Q633215 Q3177009 Q571295 Q549368 Q3508854
(c(Q2235308),P361,c(Q43229)|c(Q5962346))
action greater
action union
action find_tuple_counts
relation P361
type Q2235308
type Q43229
action find_tuple_counts
relation P361
type Q2235308
type Q5962346
action count
action filter_multi_types
action find
entity Q5014271
relation P361
type Q43229
type Q5962346
[ANSWERS]
[{'concept': 'Q2235308'}, 'P361', [{'concept': 'Q43229'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Q5014271 property:P361 ?a . { ?a rdf:type ?x . VALUES ( ?x ) { ( ontology:Q5962346 ) ( ontology:Q43229 ) } } } } . FILTER ( ?u > ?y ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?k WHERE { { ?k property:P361 ?g . ?g rdf:type ontology:Q43229 . ?k rdf:type ontology:Q2235308 } UNION { ?k property:P361 ?g . ?k rdf:type ontology:Q2235308 . ?g rdf:type ontology:Q5962346 } } GROUP BY ?k } }
German submarine U-38 German submarine U-42 German submarine U-43 HMS Händig German submarine U-44 German submarine U-37 German submarine U-39 Odyssey German submarine U-41 German submarine U-40 Sea Launch Commander
German submarine U-38 German submarine U-42 German submarine U-43
action greater
action union
action find_tuple_counts
relation part of
type ship type
type organization
action find_tuple_counts
relation part of
type ship type
type classification scheme
action count
action filter_multi_types
action find
entity CSS Chattahoochee
relation part of
type organization
type classification scheme
[{'concept': 'ship type'}, 'part of', [{'concept': 'organization'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:CSS_Chattahoochee property:part_of ?a . { ?a rdf:type ?x . VALUES ( ?x ) { ( ontology:classification_scheme ) ( ontology:organization ) } } } } . FILTER ( ?u > ?y ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?k WHERE { { ?k property:part_of ?g . ?g rdf:type ontology:organization . ?k rdf:type ontology:ship_type } UNION { ?k property:part_of ?g . ?k rdf:type ontology:ship_type . ?g rdf:type ontology:classification_scheme } } GROUP BY ?k } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q666573
P289
Q5962346
USER
Which classification scheme does that ship type possess as its vessel class ?
(Q666573,P289,c(Q5962346))
action filter_type
action find
entity Q666573
relation P289
type Q5962346
['Q666573', 'P289', {'concept': 'Q5962346'}]
SELECT DISTINCT ?c WHERE { resource:Q666573 property:P289 ?c . ?c rdf:type ontology:Q5962346 }
German submarine U-38
action filter_type
action find
entity German submarine U-38
relation vessel class
type classification scheme
['German submarine U-38', 'vessel class', {'concept': 'classification scheme'}]
SELECT DISTINCT ?c WHERE { resource:German_submarine_U-38 property:vessel_class ?c . ?c rdf:type ontology:classification_scheme }
[]
classification scheme
Clarification for simple ques.
Q568690
SYSTEM
Did you mean German submarine U-42 ?
Q666573 Q568690 Q571254
(Q666573,P289,c(Q5962346)) (Q568690,P289,c(Q5962346)) (Q571254,P289,c(Q5962346))
[ANSWER]
['Q666573', 'P289', {'concept': 'Q5962346'}] ['Q568690', 'P289', {'concept': 'Q5962346'}] ['Q571254', 'P289', {'concept': 'Q5962346'}]
SELECT DISTINCT ?c WHERE { resource:Q666573 property:P289 ?c . ?c rdf:type ontology:Q5962346 }
German submarine U-38 German submarine U-42 German submarine U-43
Did you mean German submarine U-42 ?
German submarine U-42
['German submarine U-38', 'vessel class', {'concept': 'classification scheme'}] ['German submarine U-42', 'vessel class', {'concept': 'classification scheme'}] ['German submarine U-43', 'vessel class', {'concept': 'classification scheme'}]
SELECT DISTINCT ?c WHERE { resource:German_submarine_U-38 property:vessel_class ?c . ?c rdf:type ontology:classification_scheme }
[]
Simple Question (Coreferenced)
USER
No, I meant German submarine U-38. Could you tell me the answer for that?
(Q666573,P289,c(Q5962346))
Q666573
['Q666573', 'P289', {'concept': 'Q5962346'}]
['German submarine U-38', 'vessel class', {'concept': 'classification scheme'}]
[]
Q5551283
SYSTEM
Type IXA submarine
Q5551283
(Q666573,P289,c(Q5962346))
action filter_type
action find
entity Q666573
relation P289
type Q5962346
Submarine [ANSWER] as its vessel class that ship type possesses
['Q666573', 'P289', {'concept': 'Q5962346'}]
SELECT DISTINCT ?c WHERE { resource:Q666573 property:P289 ?c . ?c rdf:type ontology:Q5962346 }
Type IXA submarine
Submarine Type IXA submarine as its vessel class that ship type possesses
Type IXA submarine
action filter_type
action find
entity German submarine U-38
relation vessel class
type classification scheme
['German submarine U-38', 'vessel class', {'concept': 'classification scheme'}]
SELECT DISTINCT ?c WHERE { resource:German_submarine_U-38 property:vessel_class ?c . ?c rdf:type ontology:classification_scheme }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q23739
P136
Q5962346 Q838948 Q166142
USER
How many classification schemes can be considered as genre of lesser number of works of art and applications than soap opera ?
(c(Q838948)|c(Q166142),P136,c(Q5962346))
action count
action less
action union
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q838948
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q23739
relation P136
type Q838948
type Q166142
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P136', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:P136 resource:Q23739 . { VALUES ( ?q ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?b rdf:type ?q } } } . FILTER ( ?o < ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?o ) WHERE { VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?h rdf:type ?m } GROUP BY ?n } }
soap opera
action count
action less
action union
action find_reverse_tuple_counts
relation genre
type classification scheme
type work of art
action find_reverse_tuple_counts
relation genre
type classification scheme
type application
action count
action filter_multi_types
action find_reverse
entity soap opera
relation genre
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'genre', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:genre resource:soap_opera . { VALUES ( ?q ) { ( ontology:work_of_art ) ( ontology:application ) } . ?b rdf:type ?q } } } . FILTER ( ?o < ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?o ) WHERE { VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:application ) } . ?h rdf:type ?m } GROUP BY ?n } }
[]
classification scheme work of art application
SYSTEM
56
Q968679 Q5227671 Q18336 Q21188110 Q1153495 Q4949058 Q581714 Q1273568 Q281111 Q338632 Q336181 Q216545 Q7724161 Q16894224 Q3546572 Q47307 Q3421644 Q861402 Q29197 Q23745 Q188504 Q380313 Q20267837 Q7696995 Q4382232 Q1407245 Q4922471 Q17113138 Q5465514 Q204698 Q2290276 Q161272 Q20220309 Q6546170 Q4765080 Q349479 Q336059 Q179805 Q47555 Q288608 Q1457145 Q12322867 Q1962634 Q399811 Q775344 Q6022825 Q482612 Q21232614 Q3951815 Q20652466 Q1413406 Q178840 Q1924856 Q986699 Q5428822 Q7988576
(c(Q838948)|c(Q166142),P136,c(Q5962346))
action count
action less
action union
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q838948
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q23739
relation P136
type Q838948
type Q166142
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P136', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:P136 resource:Q23739 . { VALUES ( ?q ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?b rdf:type ?q } } } . FILTER ( ?o < ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?o ) WHERE { VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?h rdf:type ?m } GROUP BY ?n } }
Terza rima dating game show heraldry American television sitcom configuration management bottle episode animated series children's television series Ghazal documentary soap opera variety show Christian theology teleserial sports program tabloid talk show genealogy reality show educational television season premiere telenovela alternative medicine archival science historical television series television comedy procedural drama television show black sitcom teen sitcom food reality television limerick season finale social psychology horror television series light entertainment animated sitcom building industry science fiction political philosophy political economy Scripted Reality cooking show crime television news television series Japanese television drama teen drama Indian soap opera Korean drama reality television series sceneggiato black comedy television program technical documentation television series about families metal construction late-night talk show factual television television western
56
action count
action less
action union
action find_reverse_tuple_counts
relation genre
type classification scheme
type work of art
action find_reverse_tuple_counts
relation genre
type classification scheme
type application
action count
action filter_multi_types
action find_reverse
entity soap opera
relation genre
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'genre', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:genre resource:soap_opera . { VALUES ( ?q ) { ( ontology:work_of_art ) ( ontology:application ) } . ?b rdf:type ?q } } } . FILTER ( ?o < ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?o ) WHERE { VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:application ) } . ?h rdf:type ?m } GROUP BY ?n } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q7696995
P136
Q5962346 Q838948 Q166142
USER
And what about television comedy?
(c(Q838948)|c(Q166142),P136,c(Q5962346))
action count
action less
action union
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q838948
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q7696995
relation P136
type Q838948
type Q166142
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P136', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?k WHERE { VALUES ( ?g ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?f rdf:type ?g } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { { { ?c rdf:type ontology:Q838948 } UNION { ?c rdf:type ontology:Q166142 } } . ?c property:P136 resource:Q7696995 } } . FILTER ( ?h < ?l ) }
television comedy
action count
action less
action union
action find_reverse_tuple_counts
relation genre
type classification scheme
type work of art
action find_reverse_tuple_counts
relation genre
type classification scheme
type application
action count
action filter_multi_types
action find_reverse
entity television comedy
relation genre
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'genre', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?k WHERE { VALUES ( ?g ) { ( ontology:work_of_art ) ( ontology:application ) } . ?f rdf:type ?g } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { { { ?c rdf:type ontology:work_of_art } UNION { ?c rdf:type ontology:application } } . ?c property:genre resource:television_comedy } } . FILTER ( ?h < ?l ) }
[]
classification scheme work of art application
SYSTEM
53
Q968679 Q5227671 Q18336 Q21188110 Q1153495 Q4949058 Q581714 Q1273568 Q281111 Q338632 Q336181 Q216545 Q7724161 Q16894224 Q3546572 Q47307 Q3421644 Q861402 Q29197 Q23745 Q188504 Q380313 Q20267837 Q4382232 Q1407245 Q4922471 Q17113138 Q5465514 Q204698 Q2290276 Q161272 Q20220309 Q6546170 Q4765080 Q349479 Q179805 Q47555 Q288608 Q1457145 Q12322867 Q1962634 Q775344 Q6022825 Q482612 Q21232614 Q3951815 Q20652466 Q1413406 Q178840 Q1924856 Q986699 Q5428822 Q7988576
(c(Q838948)|c(Q166142),P136,c(Q5962346))
action count
action less
action union
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q838948
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q7696995
relation P136
type Q838948
type Q166142
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P136', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?k WHERE { VALUES ( ?g ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?f rdf:type ?g } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { { { ?c rdf:type ontology:Q838948 } UNION { ?c rdf:type ontology:Q166142 } } . ?c property:P136 resource:Q7696995 } } . FILTER ( ?h < ?l ) }
Terza rima dating game show heraldry American television sitcom configuration management bottle episode animated series children's television series Ghazal documentary soap opera variety show Christian theology teleserial sports program tabloid talk show genealogy reality show educational television season premiere telenovela alternative medicine archival science historical television series procedural drama television show black sitcom teen sitcom food reality television limerick season finale social psychology horror television series light entertainment animated sitcom building industry political philosophy political economy Scripted Reality cooking show crime television news television series teen drama Indian soap opera Korean drama reality television series sceneggiato black comedy television program technical documentation television series about families metal construction late-night talk show factual television television western
53
action count
action less
action union
action find_reverse_tuple_counts
relation genre
type classification scheme
type work of art
action find_reverse_tuple_counts
relation genre
type classification scheme
type application
action count
action filter_multi_types
action find_reverse
entity television comedy
relation genre
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'genre', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?k WHERE { VALUES ( ?g ) { ( ontology:work_of_art ) ( ontology:application ) } . ?f rdf:type ?g } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { { { ?c rdf:type ontology:work_of_art } UNION { ?c rdf:type ontology:application } } . ?c property:genre resource:television_comedy } } . FILTER ( ?h < ?l ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1642224 Q2591384
P47 P17
Q1048835
USER
Which political territories do HMCS Magnificent belong to or are adjacent to Noalejo ?
OR((Q2591384,P17,c(Q1048835)), (Q1642224,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q2591384
relation P17
action find
entity Q1642224
relation P47
type Q1048835
{'OR': [['Q2591384', 'P17', {'concept': 'Q1048835'}], ['Q1642224', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q2591384 property:P17 ?v } UNION { resource:Q1642224 property:P47 ?v } } . ?v rdf:type ontology:Q1048835 }
Noalejo HMCS Magnificent
action filter_type
action union
action find
entity HMCS Magnificent
relation country
action find
entity Noalejo
relation shares border with
type political territorial entity
{'OR': [['HMCS Magnificent', 'country', {'concept': 'political territorial entity'}], ['Noalejo', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:HMCS_Magnificent property:country ?v } UNION { resource:Noalejo property:shares_border_with ?v } } . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1641746 Q593679 Q1611875 Q780608 Q16 Q2047553 Q593505 Q253744 Q1410782 Q1641765
SYSTEM
Huelma, Montillana, Cambil, Campillo de Arenas, Canada, Frailes, Montejícar, Campotéjar, Iznalloz, Valdepeñas de Jaén
Q1641746 Q593679 Q1611875 Q780608 Q16 Q2047553 Q593505 Q253744 Q1410782 Q1641765
OR((Q2591384,P17,c(Q1048835)), (Q1642224,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q2591384
relation P17
action find
entity Q1642224
relation P47
type Q1048835
HMCS Magnificent belong to the [ANSWERS] or are adjacent to Noalejo
{'OR': [['Q2591384', 'P17', {'concept': 'Q1048835'}], ['Q1642224', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q2591384 property:P17 ?v } UNION { resource:Q1642224 property:P47 ?v } } . ?v rdf:type ontology:Q1048835 }
Huelma Montillana Cambil Campillo de Arenas Canada Frailes Montejícar Campotéjar Iznalloz Valdepeñas de Jaén
HMCS Magnificent belong to the Huelma, Montillana, Cambil, Campillo de Arenas, Canada, Frailes, Montejícar, Campotéjar, Iznalloz and Valdepeñas de Jaén or are adjacent to Noalejo
Huelma Montillana Cambil Campillo de Arenas Canada Frailes Montejícar Campotéjar Iznalloz Valdepeñas de Jaén
action filter_type
action union
action find
entity HMCS Magnificent
relation country
action find
entity Noalejo
relation shares border with
type political territorial entity
{'OR': [['HMCS Magnificent', 'country', {'concept': 'political territorial entity'}], ['Noalejo', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:HMCS_Magnificent property:country ?v } UNION { resource:Noalejo property:shares_border_with ?v } } . ?v rdf:type ontology:political_territorial_entity }
[]