Simple Question (Direct)
Simple Question
Q926235
P40
Q502895
USER
Which people are children of Jean-Paul van Poppel ?
(Q926235,P40,c(Q502895))
action filter_type
action find
entity Q926235
relation P40
type Q502895
['Q926235', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q926235 property:P40 ?p }
Jean-Paul van Poppel
action filter_type
action find
entity Jean-Paul van Poppel
relation child
type common name
['Jean-Paul van Poppel', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Jean-Paul_van_Poppel property:child ?p }
[]
common name
Q359356 Q1164826
SYSTEM
Boy van Poppel, Danny van Poppel
Q359356 Q1164826
(Q926235,P40,c(Q502895))
action filter_type
action find
entity Q926235
relation P40
type Q502895
[ANSWERS]
['Q926235', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q926235 property:P40 ?p }
Boy van Poppel Danny van Poppel
Boy van Poppel Danny van Poppel
action filter_type
action find
entity Jean-Paul van Poppel
relation child
type common name
['Jean-Paul van Poppel', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Jean-Paul_van_Poppel property:child ?p }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q359356 Q1164826
P106
Q12737077
USER
Which occupations are the professions of Boy van Poppel and Danny van Poppel ?
(Q359356,P106,c(Q12737077)) (Q1164826,P106,c(Q12737077))
action union
action filter_type
action find
entity Q359356
relation P106
type Q12737077
action filter_type
action find
entity Q1164826
relation P106
type Q12737077
['Q359356', 'P106', {'concept': 'Q12737077'}] ['Q1164826', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { { ?g rdf:type ontology:Q12737077 . resource:Q359356 property:P106 ?g } UNION { resource:Q1164826 property:P106 ?g . ?g rdf:type ontology:Q12737077 } }
Boy van Poppel Danny van Poppel
action union
action filter_type
action find
entity Boy van Poppel
relation occupation
type occupation
action filter_type
action find
entity Danny van Poppel
relation occupation
type occupation
['Boy van Poppel', 'occupation', {'concept': 'occupation'}] ['Danny van Poppel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { { ?g rdf:type ontology:occupation . resource:Boy_van_Poppel property:occupation ?g } UNION { resource:Danny_van_Poppel property:occupation ?g . ?g rdf:type ontology:occupation } }
[]
occupation
Q2309784 Q15117415 Q2309784
SYSTEM
sport cyclist for 1st, 3rd, cyclo-cross cyclist for 2nd
Q2309784 Q15117415 Q2309784
(Q359356,P106,c(Q12737077)) (Q1164826,P106,c(Q12737077))
action union
action filter_type
action find
entity Q359356
relation P106
type Q12737077
action filter_type
action find
entity Q1164826
relation P106
type Q12737077
[ANSWERS]
['Q359356', 'P106', {'concept': 'Q12737077'}] ['Q1164826', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { { ?g rdf:type ontology:Q12737077 . resource:Q359356 property:P106 ?g } UNION { resource:Q1164826 property:P106 ?g . ?g rdf:type ontology:Q12737077 } }
sport cyclist cyclo-cross cyclist sport cyclist
sport cyclist cyclo-cross cyclist sport cyclist
action union
action filter_type
action find
entity Boy van Poppel
relation occupation
type occupation
action filter_type
action find
entity Danny van Poppel
relation occupation
type occupation
['Boy van Poppel', 'occupation', {'concept': 'occupation'}] ['Danny van Poppel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { { ?g rdf:type ontology:occupation . resource:Boy_van_Poppel property:occupation ?g } UNION { resource:Danny_van_Poppel property:occupation ?g . ?g rdf:type ontology:occupation } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1164826
P710
Q22348500
USER
Which cycling race class was Danny van Poppel a participant of ?
(c(Q22348500),P710,Q1164826)
action filter_type
action find_reverse
entity Q1164826
relation P710
type Q22348500
[{'concept': 'Q22348500'}, 'P710', 'Q1164826']
SELECT DISTINCT ?m WHERE { ?m property:P710 resource:Q1164826 . ?m rdf:type ontology:Q22348500 }
Danny van Poppel
action filter_type
action find_reverse
entity Danny van Poppel
relation participant
type cycling race class defined by the International Cycling Union
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'participant', 'Danny van Poppel']
SELECT DISTINCT ?m WHERE { ?m property:participant resource:Danny_van_Poppel . ?m rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
cycling race class defined by the International Cycling Union
Q18720386
SYSTEM
2015 Paris–Roubaix
Q18720386
(c(Q22348500),P710,Q1164826)
action filter_type
action find_reverse
entity Q1164826
relation P710
type Q22348500
[ANSWER]
[{'concept': 'Q22348500'}, 'P710', 'Q1164826']
SELECT DISTINCT ?m WHERE { ?m property:P710 resource:Q1164826 . ?m rdf:type ontology:Q22348500 }
2015 Paris–Roubaix
2015 Paris–Roubaix
action filter_type
action find_reverse
entity Danny van Poppel
relation participant
type cycling race class defined by the International Cycling Union
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'participant', 'Danny van Poppel']
SELECT DISTINCT ?m WHERE { ?m property:participant resource:Danny_van_Poppel . ?m rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1164826
P7
Q502895
USER
Which person is the brother of that one ?
(Q18720386,P7,c(Q502895))
action filter_type
action find
entity Q1164826
relation P7
type Q502895
['Q18720386', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q1164826 property:P7 ?n . ?n rdf:type ontology:Q502895 }
Danny van Poppel
action filter_type
action find
entity Danny van Poppel
relation brother
type common name
['2015 Paris–Roubaix', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Danny_van_Poppel property:brother ?n . ?n rdf:type ontology:common_name }
[]
common name
Q359356
SYSTEM
Boy van Poppel
Q359356
(Q18720386,P7,c(Q502895))
action filter_type
action find
entity Q1164826
relation P7
type Q502895
[ANSWER]
['Q18720386', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q1164826 property:P7 ?n . ?n rdf:type ontology:Q502895 }
Boy van Poppel
Boy van Poppel
action filter_type
action find
entity Danny van Poppel
relation brother
type common name
['2015 Paris–Roubaix', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Danny_van_Poppel property:brother ?n . ?n rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1420651 Q1164826
P161 P7
Q502895
USER
Which people have Danny van Poppel as their sibling or were casted in Tombstone ?
OR((Q1164826,P7,c(Q502895)), (Q1420651,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1164826
relation P7
action find
entity Q1420651
relation P161
type Q502895
{'OR': [['Q1164826', 'P7', {'concept': 'Q502895'}], ['Q1420651', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . { { resource:Q1164826 property:P7 ?b } UNION { resource:Q1420651 property:P161 ?b } } }
Tombstone Danny van Poppel
action filter_type
action union
action find
entity Danny van Poppel
relation brother
action find
entity Tombstone
relation cast member
type common name
{'OR': [['Danny van Poppel', 'brother', {'concept': 'common name'}], ['Tombstone', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . { { resource:Danny_van_Poppel property:brother ?b } UNION { resource:Tombstone property:cast_member ?b } } }
[]
common name
Q191084 Q265996 Q241510 Q503027 Q312902 Q205435 Q1321988 Q16472 Q436425 Q1397312
SYSTEM
Some of them are Val Kilmer, Joanna Pacuła, Michael Biehn, Powers Boothe, Stephen Lang, Billy Zane, Jon Tenney, Robert Mitchum, Buck Taylor, Harry Carey
Q202735 Q1972214 Q241510 Q1321988 Q737369 Q271637 Q205435 Q103157 Q311769 Q433198 Q265996 Q228925 Q1397312 Q80739 Q110374 Q959153 Q359356 Q311314 Q312902 Q525065 Q16472 Q503027 Q311615 Q436425 Q191084
OR((Q1164826,P7,c(Q502895)), (Q1420651,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1164826
relation P7
action find
entity Q1420651
relation P161
type Q502895
[ANSWERS]
{'OR': [['Q1164826', 'P7', {'concept': 'Q502895'}], ['Q1420651', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . { { resource:Q1164826 property:P7 ?b } UNION { resource:Q1420651 property:P161 ?b } } }
Billy Bob Thornton Dana Wheeler-Nicholson Michael Biehn Jon Tenney Tomas Arana Terry O'Quinn Billy Zane Kurt Russell Jason Priestley Paula Malcomson Joanna Pacuła Dana Delany Harry Carey Charlton Heston Bill Paxton Frank Stallone Boy van Poppel Sam Elliott Stephen Lang Michael Rooker Robert Mitchum Powers Boothe Thomas Haden Church Buck Taylor Val Kilmer
Val Kilmer Joanna Pacuła Michael Biehn Powers Boothe Stephen Lang Billy Zane Jon Tenney Robert Mitchum Buck Taylor Harry Carey
action filter_type
action union
action find
entity Danny van Poppel
relation brother
action find
entity Tombstone
relation cast member
type common name
{'OR': [['Danny van Poppel', 'brother', {'concept': 'common name'}], ['Tombstone', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . { { resource:Danny_van_Poppel property:brother ?b } UNION { resource:Tombstone property:cast_member ?b } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1444
Q20667921 Q56061 Q22348500
USER
Which cycling race classes finally halts at around 1 french administrative divisions or administrative territories ?
(c(Q22348500),P1444,c(Q20667921)|c(Q56061))
action approx
action union
action find_tuple_counts
relation P1444
type Q22348500
type Q20667921
action find_tuple_counts
relation P1444
type Q22348500
type Q56061
value 1
[{'concept': 'Q22348500'}, 'P1444', [{'concept': 'Q20667921'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) ?r WHERE { VALUES ( ?c ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } . ?n rdf:type ?c } GROUP BY ?r } . FILTER ( ?p = 1 ) }
action approx
action union
action find_tuple_counts
relation destination point
type cycling race class defined by the International Cycling Union
type type of french administrative division
action find_tuple_counts
relation destination point
type cycling race class defined by the International Cycling Union
type administrative territorial entity
value 1
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', [{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) ?r WHERE { VALUES ( ?c ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?n rdf:type ?c } GROUP BY ?r } . FILTER ( ?p = 1 ) }
[]
type of french administrative division administrative territorial entity cycling race class defined by the International Cycling Union
Q15220420 Q20872500 Q20882755
SYSTEM
2015 Tour de France, 2016 Grand Prix de Fourmies, 2016 Vuelta a España
Q22338002 Q20895715 Q21074145 Q19842424 Q17988757 Q21011978 Q20872308 Q20872305 Q18923425 Q19832829 Q20751920 Q23819599 Q20897893 Q20897894 Q19859305 Q19371744 Q21847093 Q21088548 Q22132642 Q26208688 Q22780713 Q20651307 Q19412884 Q20640109 Q19917447 Q19917448 Q18711267 Q18890149 Q22752188 Q3114093 Q3114095 Q3114094 Q3114096 Q23903014 Q20978954 Q3768637 Q21768432 Q26710099 Q18056673 Q26840126 Q26208313 Q20972301 Q15920352 Q20872500 Q26208535 Q18772405 Q17413847 Q21832681 Q261842 Q3114100 Q20176865 Q19249082 Q18071193 Q22032242 Q21950739 Q22101577 Q20932051 Q22812462 Q26838733 Q20202379 Q20827575 Q21884141 Q20025125 Q22570015 Q20823441 Q20855948 Q21844758 Q21885368 Q20882755 Q26876249 Q20898706 Q26253614 Q26253612 Q25346446 Q20809972 Q20651314 Q26849075 Q21083468 Q21621724 Q23534938 Q20830577 Q15999749 Q24841181 Q23905930 Q24706415 Q19753550 Q20202136 Q21093836 Q20155459 Q22814898 Q23045937 Q20724112 Q20724111 Q23292729 Q23447236 Q23438851 Q21088547 Q24037730 Q20942855 Q20898056 Q20898057 Q23294076 Q19979596 Q25115102 Q23701776 Q18574623 Q20872499 Q21832571 Q18890259 Q16956480 Q19056763 Q26208618 Q20175097 Q11080986 Q26849092 Q17988824 Q1358941 Q26208508 Q21091977 Q11958583 Q24084521 Q16154207 Q23954782 Q21867749 Q22920552 Q22981819 Q22683201 Q23005628 Q22683202 Q21821246 Q18632801 Q614218 Q20855950 Q26208939 Q23905782 Q23905783 Q4608600 Q22969962 Q17017069 Q21027926 Q19598856 Q20738934 Q17312900 Q14901154 Q20740354 Q21903450 Q20025073 Q24910037 Q20311446 Q23905929 Q23925855 Q15220420 Q24907428 Q20723777 Q4613952 Q20748811 Q16154145 Q20738971 Q20724116 Q20647339 Q16673673 Q20724108 Q27011614 Q20080404 Q20080403 Q20080401 Q20035564 Q21006972 Q3114085 Q22506035 Q3114089 Q18752244 Q18857018 Q21848550 Q20025032 Q18589873 Q21885938 Q26878348 Q17135105 Q22337737 Q19204232 Q3768648 Q27074321 Q20648047 Q20730613 Q3768640 Q3768645 Q20017663 Q22569830 Q23042007 Q23673809 Q26208484 Q20059842 Q21083327 Q20819749 Q21816915 Q2685979 Q21008846 Q21903469 Q23793832 Q19260764 Q18720386 Q21884122 Q27687926
(c(Q22348500),P1444,c(Q20667921)|c(Q56061))
action approx
action union
action find_tuple_counts
relation P1444
type Q22348500
type Q20667921
action find_tuple_counts
relation P1444
type Q22348500
type Q56061
value 1
[ANSWERS]
[{'concept': 'Q22348500'}, 'P1444', [{'concept': 'Q20667921'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) ?r WHERE { VALUES ( ?c ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } . ?n rdf:type ?c } GROUP BY ?r } . FILTER ( ?p = 1 ) }
2017 Tour Down Under 2016 GP Viborg 2015 Ster van Zwolle 2016 Grand Prix de Denain 2014 GP de Plouay 2016 Gran Premio di Lugano Tour du Poitou-Charentes 2016 Tour du Poitou-Charentes 2015 2015 Tour du Limousin 2015 GP Miguel Indurain 2016 Danmark Rundt 2016 Porec Trophy Skive-Løbet 2015 Skive-Løbet 2016 2016 Four Days of Dunkirk 2015 Arctic Race of Norway 2016 Tour of Almaty 2016 Paris–Tours 2016 New Zealand Cycle Classic 2016 ZODC Zuidenveld Tour 2016 Tour de Langkawi 2016 Cadel Evans Great Ocean Road Race 2015 Tour de l'Ain 2016 Tour of Austria 2015 Paris-Arras Tour 2016 Paris-Arras Tour 2015 Clásica de Almería 2015 Amstel Gold Race 2016 Tour of Oman 2007 Grand Prix de Fourmies 2009 Grand Prix de Fourmies 2008 Grand Prix de Fourmies 2010 Grand Prix de Fourmies 2016 Massawa Circuit Boucles de l'Aulne 2016 2004 Giro d'Italia Femminile 2016 Paris–Nice 2016 Boels Rental Ladies Tour Grote Prijs Jef Scherens 2014 Tour de Savoie Mont-Blanc 2016 2016 Trofeo Edil C 2016 Il Lombardia 2014 Grand Prix de la Ville de Lillers 2016 Grand Prix de Fourmies 2016 Paris–Mantes-en-Yvelines 2015 Cadel Evans Great Ocean Road Race Ronde pévéloise 2014 2016 Ster van Zwolle 2012 Tour of Austria 2012 Grand Prix de Fourmies 2016 Omloop Het Nieuwsblad 2015 Grand Prix de Denain Grand Prix de Wallonie 2014 2016 Tour de San Luis 2016 Gent–Wevelgem 2016 La Tropicale Amissa Bongo Brussels Cycling Classic 2016 2016 Tour du Haut Var 2017 Giro d'Italia 2016 Tour of Slovenia 2016 Tour of Utah 2016 Cholet-Pays de Loire 2015 Tour of Estonia 2016 Volta a la Comunitat Valenciana 2016 Tour de l'Ain 2015 Grote Prijs Jef Scherens 2015 Korona Kocich Gór 2016 Volta Limburg Classic 2016 Vuelta a España Chrono champenois 2016 2015 Tour of Japan 2016 Bretagne Classic 2016 Grand Prix Cycliste de Montréal 2016 Trofeo Banca Popolare di Vicenza 2015 Tour de Guadeloupe 2016 Route Adélie La Madrid Challenge by La Vuelta 2015 2015 Nationale Sluitingsprijs 2016 Gran Premio della Costa Etruschi 2016 Tour de Normandie 2016 Tour du Limousin 2014 Grand Prix de Denain 2016 Tour du Finistère 2016 Fenkel Northern Redsea 2016 GP Horsens 2015 Triptyque des Monts et Châteaux 2016 Route du Sud 2016 Tour Down Under 2016 Tour de Yorkshire 2015 Tour of Kuban 2016 Paris–Troyes 2015 Grand Prix des Marbriers 2015 Grand Prix de la ville de Pérenchies 2016 Tour of the Basque Country 2014 GP Izola 2016 GP Izola 2015 Paris–Tours 2016 Circuit de la Sarthe 2016 Tour of Britain 2015 Umag Trophy 2016 Trofej Umag 2016 Tour de Romandie 2015 Tour des Fjords 2016 GP Adria Mobil 2011 Tour of Flanders for Women 2016 Tour de France 2015 Grand Prix de Fourmies 2016 GP Laguna 2015 Clásica de San Sebastián 2014 Festival Luxembourgeois du cyclisme féminin Elsy Jacobs 2015 Omloop Het Nieuwsblad 2016 Gran Premio della Liberazione 2016 Paris–Roubaix 2013 Grand Prix de Denain La Madrid Challenge by La Vuelta 2016 2014 Tour Cycliste Féminin International de l'Ardèche 2012 Tour de Luxembourg 2016 Rutland–Melton International CiCLE Classic 2015 Rund um Köln 2013 Arctic Race of Norway Istrian Spring Trophy 2016 2013 GP de Plouay 2015 Festival Luxembourgeois du cyclisme féminin Elsy Jacobs 2016 Vuelta a Murcia 2016 Volta a Catalunya 2016 Rund um Köln 2015 REV Classic 2016 Strade Bianche Women 2016 REV Classic 2017 Tour de France Dwars door de Vlaamse Ardennen 2015 2011 Grand Prix de Fourmies Grote Prijs Jef Scherens 2016 2016 Visegrad 4 GP Slovakia 2013 Circuit of Asmara 2016 Asmara Circuit 2007 Holland Ladies Tour 2016 Omloop Het Nieuwsblad – Women's race 2014 Winston-Salem Cycling Classic 2016 Tour des Fjords 2015 Grand Prix Cycliste de Montréal 2015 Tour Alsace 2014 Arctic Race of Norway 2013 Grand Prix de Fourmies 2016 Volta a Portugal 2016 Paris–Camembert 2015 Tour de Luxembourg 2015 GP de Plouay 2015 Strade Bianche Women 2013 Fenkel Northern Redsea 2016 GP Industria & Artigianato di Larciano 2015 Tour de France 2015 Boels Rental Ladies Tour 2012 Scandinavian Race Uppsala 2009 Holland Ladies Tour 2015 Polynormande 2013 Energiewacht Tour 2016 Clásica de San Sebastián 2015 La Route de France 2015 Gent–Wevelgem for women 2014 La Route de France Côte picarde 2015 Gran Premio Bruno Beghelli 2016 2016 Scandinavian Race Uppsala 2015 Scandinavian Race Uppsala Scandinavian Race Uppsala 2013 2016 Tour de Luxembourg 2016 Vuelta al Táchira 2011 Grand Prix de Denain 2016 Étoile de Bessèges 2006 Grand Prix de Fourmies 2015 Vuelta a España 2014 Scandinavian Race Uppsala 2016 Grand Prix de la Ville de Lillers 2016 Giro d'Italia 2015 Four Days of Dunkirk 2016 GP Miguel Indurain 2017 Vuelta a España 2014 Tour de Luxembourg 2016 Tour d'Egypte 2015 Volta ao Algarve 2012 Giro d'Italia Femminile Tres Valles Varesinos 2016 2015 Tour of Britain 2016 Tour de l'Avenir 2005 Giro d'Italia Femminile 2010 Giro d'Italia Femminile 2015 Paris–Roubaix Espoirs 2016 Dubai Tour 2016 The Women's Tour 2016 Tro-Bro Léon Arno Wallaard Memorial 2016 2016 La Roue Tourangelle 2016 Strade Bianche 2015 Circuito de Getxo 2016 Tour de Bretagne 2012 Grand Prix de Denain 2015 The Women's Tour 2016 Vuelta a La Rioja 2016 GP Liberty Seguros 2015 Tour du Haut Var 2015 Paris–Roubaix 2016 Classic Loire Atlantique 2016 Vuelta a Guatemala
2015 Tour de France 2016 Grand Prix de Fourmies 2016 Vuelta a España
action approx
action union
action find_tuple_counts
relation destination point
type cycling race class defined by the International Cycling Union
type type of french administrative division
action find_tuple_counts
relation destination point
type cycling race class defined by the International Cycling Union
type administrative territorial entity
value 1
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', [{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) ?r WHERE { VALUES ( ?c ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?n rdf:type ?c } GROUP BY ?r } . FILTER ( ?p = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q1307214 Q178706 Q12737077
USER
Which occupations were appointed by max number of forms of government or institutions ?
(c(Q12737077),P748,c(Q1307214)|c(Q178706))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q178706
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q178706'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?f WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:Q1307214 ) ( ontology:Q178706 ) } } GROUP BY ?f } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) ?k WHERE { { ?k property:P748 ?s . ?k rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q1307214 } UNION { ?k property:P748 ?s . ?s rdf:type ontology:Q178706 . ?k rdf:type ontology:Q12737077 } } GROUP BY ?k } . FILTER ( ?b = ?l ) }
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type institution
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'institution'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?f WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:form_of_government ) ( ontology:institution ) } } GROUP BY ?f } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) ?k WHERE { { ?k property:appointed_by ?s . ?k rdf:type ontology:occupation . ?s rdf:type ontology:form_of_government } UNION { ?k property:appointed_by ?s . ?s rdf:type ontology:institution . ?k rdf:type ontology:occupation } } GROUP BY ?k } . FILTER ( ?b = ?l ) }
[]
form of government institution occupation
Q81066 Q217217 Q1281611
SYSTEM
United Nations Secretary-General, Lord Chancellor, Lieutenant Governor of Jersey
Q1355456 Q1507619 Q740126 Q910308 Q1753754 Q943379 Q1161813 Q583809 Q2962001 Q8882 Q213107 Q162754 Q217217 Q634291 Q735587 Q1281611 Q81066 Q1752225 Q687908
(c(Q12737077),P748,c(Q1307214)|c(Q178706))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q178706
[ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q178706'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?f WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:Q1307214 ) ( ontology:Q178706 ) } } GROUP BY ?f } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) ?k WHERE { { ?k property:P748 ?s . ?k rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q1307214 } UNION { ?k property:P748 ?s . ?s rdf:type ontology:Q178706 . ?k rdf:type ontology:Q12737077 } } GROUP BY ?k } . FILTER ( ?b = ?l ) }
Lord Chamberlain Deputy Prime Minister of the United Kingdom President of the European Parliament Lord Privy Seal Master of the Rolls Lord President of the Council President of the United Nations General Assembly Solicitor General for England and Wales Chief of the Defence Staff President of the European Commission Prime Minister of Belgium Chancellor of the Duchy of Lancaster Lord Chancellor High Representative of the Union for Foreign Affairs and Security Policy President of the European Council Lieutenant Governor of Jersey United Nations Secretary-General Lord Lieutenant of Ireland Lord Chief Justice of England and Wales
United Nations Secretary-General Lord Chancellor Lieutenant Governor of Jersey
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type institution
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'institution'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?f WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:form_of_government ) ( ontology:institution ) } } GROUP BY ?f } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) ?k WHERE { { ?k property:appointed_by ?s . ?k rdf:type ontology:occupation . ?s rdf:type ontology:form_of_government } UNION { ?k property:appointed_by ?s . ?s rdf:type ontology:institution . ?k rdf:type ontology:occupation } } GROUP BY ?k } . FILTER ( ?b = ?l ) }
[]