Simple Question (Direct)
Simple Question
Q1332328
P47
Q20667921
USER
Which french administrative divisions are bordered by Villers-Saint-Genest ?
(Q1332328,P47,c(Q20667921))
action filter_type
action find
entity Q1332328
relation P47
type Q20667921
['Q1332328', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q1332328 property:P47 ?g . ?g rdf:type ontology:Q20667921 }
Villers-Saint-Genest
action filter_type
action find
entity Villers-Saint-Genest
relation shares border with
type type of french administrative division
['Villers-Saint-Genest', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Villers-Saint-Genest property:shares_border_with ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q753495 Q748662 Q1098989
SYSTEM
Nanteuil-le-Haudouin, Betz, Bouillancy
Q1387023 Q1098989 Q649309 Q1098866 Q753495 Q748662
(Q1332328,P47,c(Q20667921))
action filter_type
action find
entity Q1332328
relation P47
type Q20667921
And [ANSWERS] are bordered by Villers-Saint-Genest
['Q1332328', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q1332328 property:P47 ?g . ?g rdf:type ontology:Q20667921 }
Péroy-les-Gombries Bouillancy Chèvreville Boissy-Fresnoy Nanteuil-le-Haudouin Betz
And Nanteuil-le-Haudouin, Betz and Bouillancy are bordered by Villers-Saint-Genest
Nanteuil-le-Haudouin Betz Bouillancy
action filter_type
action find
entity Villers-Saint-Genest
relation shares border with
type type of french administrative division
['Villers-Saint-Genest', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Villers-Saint-Genest property:shares_border_with ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q753495 Q748662 Q1098989
P47
Q20667921
USER
Which french administrative divisions are bordered by those ones ?
(Q753495,P47,c(Q20667921)) (Q748662,P47,c(Q20667921)) (Q1098989,P47,c(Q20667921))
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
['Q753495', 'P47', {'concept': 'Q20667921'}] ['Q748662', 'P47', {'concept': 'Q20667921'}] ['Q1098989', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q20667921 . VALUES ( ?r ) { ( resource:Q1387023 ) ( resource:Q1098989 ) ( resource:Q649309 ) } . ?r property:P47 ?w }
Nanteuil-le-Haudouin Betz Bouillancy
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
['Nanteuil-le-Haudouin', 'shares border with', {'concept': 'type of french administrative division'}] ['Betz', 'shares border with', {'concept': 'type of french administrative division'}] ['Bouillancy', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:type_of_french_administrative_division . VALUES ( ?r ) { ( resource:Péroy-les-Gombries ) ( resource:Bouillancy ) ( resource:Chèvreville ) } . ?r property:shares_border_with ?w }
[]
type of french administrative division
Q748662 Q1336486 Q1346959
SYSTEM
Betz, Montagny-Sainte-Félicité, Lévignen
Q647310 Q1336486 Q1386994 Q1387023 Q649309 Q1332328 Q1331843 Q1098717 Q1098866 Q1106682 Q1098989 Q1346959 Q1332328 Q1095665 Q1346855 Q1106682 Q1098661 Q649309 Q1332328 Q1332380 Q748662
(Q753495,P47,c(Q20667921)) (Q748662,P47,c(Q20667921)) (Q1098989,P47,c(Q20667921))
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
[ANSWERS] are bordered by those ones
['Q753495', 'P47', {'concept': 'Q20667921'}] ['Q748662', 'P47', {'concept': 'Q20667921'}] ['Q1098989', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q20667921 . VALUES ( ?r ) { ( resource:Q1387023 ) ( resource:Q1098989 ) ( resource:Q649309 ) } . ?r property:P47 ?w }
Versigny Montagny-Sainte-Félicité Ognes Péroy-les-Gombries Chèvreville Villers-Saint-Genest Silly-le-Long Antilly Boissy-Fresnoy Acy-en-Multien Bouillancy Lévignen Villers-Saint-Genest Étavigny Bargny Acy-en-Multien Brégy Chèvreville Villers-Saint-Genest Réez-Fosse-Martin Betz
Betz, Montagny-Sainte-Félicité and Lévignen are bordered by those ones
Betz Montagny-Sainte-Félicité Lévignen
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
['Nanteuil-le-Haudouin', 'shares border with', {'concept': 'type of french administrative division'}] ['Betz', 'shares border with', {'concept': 'type of french administrative division'}] ['Bouillancy', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:type_of_french_administrative_division . VALUES ( ?r ) { ( resource:Péroy-les-Gombries ) ( resource:Bouillancy ) ( resource:Chèvreville ) } . ?r property:shares_border_with ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1346959
P17
Q15617994
USER
Which administrative territory is Lévignen situated in ?
(Q1346959,P17,c(Q15617994))
action filter_type
action find
entity Q1346959
relation P17
type Q15617994
['Q1346959', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q1346959 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Lévignen
action filter_type
action find
entity Lévignen
relation country
type designation for an administrative territorial entity
['Lévignen', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Lévignen property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1346959,P17,c(Q15617994))
action filter_type
action find
entity Q1346959
relation P17
type Q15617994
Lévignen is situated in [ANSWER]
['Q1346959', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q1346959 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
France
Lévignen is situated in France
France
action filter_type
action find
entity Lévignen
relation country
type designation for an administrative territorial entity
['Lévignen', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Lévignen property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P35
Q502895
USER
Which people have the highest formal authority in that administrative territory ?
(Q142,P35,c(Q502895))
action filter_type
action find
entity Q142
relation P35
type Q502895
['Q142', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q142 property:P35 ?h . ?h rdf:type ontology:Q502895 }
France
action filter_type
action find
entity France
relation head of state
type common name
['France', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:France property:head_of_state ?h . ?h rdf:type ontology:common_name }
[]
common name
Q2105 Q2042 Q2038
SYSTEM
Jacques Chirac, Charles de Gaulle, François Mitterrand
Q2105 Q2038 Q157 Q329 Q2042 Q12950 Q2185 Q2124
(Q142,P35,c(Q502895))
action filter_type
action find
entity Q142
relation P35
type Q502895
[ANSWERS] have the highest formal authority in that administrative territory
['Q142', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q142 property:P35 ?h . ?h rdf:type ontology:Q502895 }
Jacques Chirac François Mitterrand François Hollande Nicolas Sarkozy Charles de Gaulle Alain Poher Georges Pompidou Valéry Giscard d'Estaing
Jacques Chirac, Charles de Gaulle and François Mitterrand have the highest formal authority in that administrative territory
Jacques Chirac Charles de Gaulle François Mitterrand
action filter_type
action find
entity France
relation head of state
type common name
['France', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:France property:head_of_state ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P6
Q502895
USER
Who are the heads of the government of that administrative territory ?
(Q2105,P6,c(Q502895)) (Q2042,P6,c(Q502895)) (Q2038,P6,c(Q502895))
action filter_type
action find
entity Q142
relation P6
type Q502895
['Q2105', 'P6', {'concept': 'Q502895'}] ['Q2042', 'P6', {'concept': 'Q502895'}] ['Q2038', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q142 property:P6 ?s . ?s rdf:type ontology:Q502895 }
France
action filter_type
action find
entity France
relation head of government
type common name
['Jacques Chirac', 'head of government', {'concept': 'common name'}] ['Charles de Gaulle', 'head of government', {'concept': 'common name'}] ['François Mitterrand', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:France property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Q10287 Q7711
SYSTEM
Manuel Valls, Jean-Marc Ayrault
Q10287 Q7711
(Q2105,P6,c(Q502895)) (Q2042,P6,c(Q502895)) (Q2038,P6,c(Q502895))
action filter_type
action find
entity Q142
relation P6
type Q502895
The heads of the government of that administrative territory are President [ANSWERS]
['Q2105', 'P6', {'concept': 'Q502895'}] ['Q2042', 'P6', {'concept': 'Q502895'}] ['Q2038', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q142 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Manuel Valls Jean-Marc Ayrault
The heads of the government of that administrative territory are President Manuel Valls and Jean-Marc Ayrault
Manuel Valls Jean-Marc Ayrault
action filter_type
action find
entity France
relation head of government
type common name
['Jacques Chirac', 'head of government', {'concept': 'common name'}] ['Charles de Gaulle', 'head of government', {'concept': 'common name'}] ['François Mitterrand', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:France property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2042
P241
Q781132 Q7188
USER
How many military branches and governments contain Charles de Gaulle as their part ?
(Q2042,P241,c(Q781132)) (Q2042,P241,c(Q7188))
action count
action union
action filter_type
action find
entity Q2042
relation P241
type Q781132
action filter_type
action find
entity Q2042
relation P241
type Q7188
['Q2042', 'P241', {'concept': 'Q781132'}] ['Q2042', 'P241', {'concept': 'Q7188'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { ?l rdf:type ?e . VALUES ( ?e ) { ( ontology:Q7188 ) ( ontology:Q781132 ) } }
Charles de Gaulle
action count
action union
action filter_type
action find
entity Charles de Gaulle
relation military branch
type military branch
action filter_type
action find
entity Charles de Gaulle
relation military branch
type government
['Charles de Gaulle', 'military branch', {'concept': 'military branch'}] ['Charles de Gaulle', 'military branch', {'concept': 'government'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { ?l rdf:type ?e . VALUES ( ?e ) { ( ontology:government ) ( ontology:military_branch ) } }
[]
military branch government
SYSTEM
1 military branches and 1 governments
Q152582 Q1076619
(Q2042,P241,c(Q781132)) (Q2042,P241,c(Q7188))
action count
action union
action filter_type
action find
entity Q2042
relation P241
type Q781132
action filter_type
action find
entity Q2042
relation P241
type Q7188
[ANSWER]
['Q2042', 'P241', {'concept': 'Q781132'}] ['Q2042', 'P241', {'concept': 'Q7188'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { ?l rdf:type ?e . VALUES ( ?e ) { ( ontology:Q7188 ) ( ontology:Q781132 ) } }
Free France French Army
1 military branches and 1 governments
action count
action union
action filter_type
action find
entity Charles de Gaulle
relation military branch
type military branch
action filter_type
action find
entity Charles de Gaulle
relation military branch
type government
['Charles de Gaulle', 'military branch', {'concept': 'military branch'}] ['Charles de Gaulle', 'military branch', {'concept': 'government'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { ?l rdf:type ?e . VALUES ( ?e ) { ( ontology:government ) ( ontology:military_branch ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q213461
P1303
Q34379 Q502895
USER
How many musical instruments are played by more number of people than harmonium ?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q213461
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:P1303 ?y . ?y rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j rdf:type ontology:Q34379 . resource:Q213461 property:P1303 ?j } } . FILTER ( ?z > ?h ) }
harmonium
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity harmonium
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:instrument ?y . ?y rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j rdf:type ontology:musical_instrument . resource:harmonium property:instrument ?j } } . FILTER ( ?z > ?h ) }
[]
musical instrument common name
SYSTEM
17
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q8338 Q8371 Q8355 Q3382191 Q742180 Q1444 Q220971 Q128309 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q213461
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:P1303 ?y . ?y rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j rdf:type ontology:Q34379 . resource:Q213461 property:P1303 ?j } } . FILTER ( ?z > ?h ) }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone trumpet cello violin upright piano viola d'amore organ marimba drum kit electronic keyboard drum
17
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity harmonium
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:instrument ?y . ?y rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j rdf:type ontology:musical_instrument . resource:harmonium property:instrument ?j } } . FILTER ( ?z > ?h ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q15416
USER
Which television programs did min number of people dub for ?
(c(Q15416),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q15416
type Q502895
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?u ) WHERE { ?e property:P725 ?h . ?e rdf:type ontology:Q15416 . ?h rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?u = ?w ) . { SELECT DISTINCT ( MIN ( ?a ) AS ?w ) { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?a ) WHERE { ?y property:P725 ?f . ?f rdf:type ontology:Q502895 . ?y rdf:type ontology:Q15416 } GROUP BY ?y } } }
action argmin
action find_tuple_counts
relation voice actor
type television program
type common name
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?u ) WHERE { ?e property:voice_actor ?h . ?e rdf:type ontology:television_program . ?h rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?u = ?w ) . { SELECT DISTINCT ( MIN ( ?a ) AS ?w ) { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?a ) WHERE { ?y property:voice_actor ?f . ?f rdf:type ontology:common_name . ?y rdf:type ontology:television_program } GROUP BY ?y } } }
[]
common name television program
Q472309 Q1617715 Q1146803
SYSTEM
Princess of Thieves, The Wonderful Galaxy of Oz, Cuéntame cómo pasó
Q1280574 Q4049303 Q715723 Q1135343 Q613823 Q1195326 Q5227700 Q4773554 Q4120156 Q962161 Q1617715 Q696310 Q472309 Q2573191 Q2581704 Q917980 Q3547706 Q845452 Q307507 Q483943 Q3106852 Q25059 Q1284240 Q14493917 Q749629 Q10913555 Q1315951 Q1361413 Q128969 Q2455207 Q2452999 Q702039 Q7496805 Q699760 Q1146803 Q2140751 Q4033639 Q1640364 Q3098248 Q1072208 Q304290 Q1215573 Q2619211 Q1140254 Q1317932 Q430369 Q1494222 Q452374 Q2339582 Q5976198 Q1353486 Q45035
(c(Q15416),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q15416
type Q502895
Min number of people dubbed The [ANSWERS]
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?u ) WHERE { ?e property:P725 ?h . ?e rdf:type ontology:Q15416 . ?h rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?u = ?w ) . { SELECT DISTINCT ( MIN ( ?a ) AS ?w ) { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?a ) WHERE { ?y property:P725 ?f . ?f rdf:type ontology:Q502895 . ?y rdf:type ontology:Q15416 } GROUP BY ?y } } }
The Adventures of Tweeny Witches Seraphim Call Urusei Yatsura Wish Upon the Pleiades Ghost Hound LOG HORIZON Tenchi in Tokyo Mi cola D.I.C.E. Eureka Seven The Wonderful Galaxy of Oz Hamtaro Princess of Thieves Onegai My Melody Willo the Wisp Witch Hunter Robin Uchūsen Sagittarius Project Blue Earth SOS H2O: Footprints in the Sand Anohana: The Flower We Saw That Day Todd McFarlane's Spawn Penguin Drum Burst Angel Galileo Donna Kid vs. Kat The Melancholy of Haruhi Suzumiya Psycho-Pass Night Raid 1931 Calimero Mnemosyne Remi, Nobody's Girl The Story of Pollyanna, Girl of Love Shima Shima Tora no Shimajirō Saiyuki Cuéntame cómo pasó Boogiepop Phantom Akahori Gedou Hour Rabuge Wild Arms: Twilight Venom Stratos 4 The Wonderful Adventures of Nils Rugrats The Proud Family Tsuritama Transformers: Animated Negima!? The Critic Garfield in the Rough Ah My Buddha Trapp Family Story I Am the Greatest: The Adventures of Muhammad Ali Marumo no Okite Renkin 3-kyū Magical? Pokān
Min number of people dubbed The Princess of Thieves, The Wonderful Galaxy of Oz and Cuéntame cómo pasó
Princess of Thieves The Wonderful Galaxy of Oz Cuéntame cómo pasó
action argmin
action find_tuple_counts
relation voice actor
type television program
type common name
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?u ) WHERE { ?e property:voice_actor ?h . ?e rdf:type ontology:television_program . ?h rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?u = ?w ) . { SELECT DISTINCT ( MIN ( ?a ) AS ?w ) { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?a ) WHERE { ?y property:voice_actor ?f . ?f rdf:type ontology:common_name . ?y rdf:type ontology:television_program } GROUP BY ?y } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1445
Q15416 Q386724
USER
Which works are set up by max number of television programs ?
(c(Q386724),P1445,c(Q15416))
action argmax
action find_tuple_counts
relation P1445
type Q386724
type Q15416
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?l ) { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?u ) WHERE { ?c property:P1445 ?t . ?c rdf:type ontology:Q386724 . ?t rdf:type ontology:Q15416 } GROUP BY ?c } } . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?m ) WHERE { ?k rdf:type ontology:Q15416 . ?x rdf:type ontology:Q386724 . ?x property:P1445 ?k } GROUP BY ?x } . FILTER ( ?m = ?l ) }
action argmax
action find_tuple_counts
relation fictional universe described in
type work
type television program
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?l ) { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?u ) WHERE { ?c property:fictional_universe_described_in ?t . ?c rdf:type ontology:work . ?t rdf:type ontology:television_program } GROUP BY ?c } } . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?m ) WHERE { ?k rdf:type ontology:television_program . ?x rdf:type ontology:work . ?x property:fictional_universe_described_in ?k } GROUP BY ?x } . FILTER ( ?m = ?l ) }
[]
television program work
Q1203222
SYSTEM
Shrek
Q1203222
(c(Q386724),P1445,c(Q15416))
action argmax
action find_tuple_counts
relation P1445
type Q386724
type Q15416
[ANSWER] is set up by max number of television programs
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?l ) { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?u ) WHERE { ?c property:P1445 ?t . ?c rdf:type ontology:Q386724 . ?t rdf:type ontology:Q15416 } GROUP BY ?c } } . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?m ) WHERE { ?k rdf:type ontology:Q15416 . ?x rdf:type ontology:Q386724 . ?x property:P1445 ?k } GROUP BY ?x } . FILTER ( ?m = ?l ) }
Shrek
Shrek is set up by max number of television programs
Shrek
action argmax
action find_tuple_counts
relation fictional universe described in
type work
type television program
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?l ) { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?u ) WHERE { ?c property:fictional_universe_described_in ?t . ?c rdf:type ontology:work . ?t rdf:type ontology:television_program } GROUP BY ?c } } . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?m ) WHERE { ?k rdf:type ontology:television_program . ?x rdf:type ontology:work . ?x property:fictional_universe_described_in ?k } GROUP BY ?x } . FILTER ( ?m = ?l ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P159
Q20667921 Q7210356 Q874405
USER
Which french administrative divisions are the headquarters of max number of political organizations and social groups located ?
(c(Q7210356)|c(Q874405),P159,c(Q20667921))
action argmax
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q874405
[[{'concept': 'Q7210356'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?e ) { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?s ) WHERE { { ?c property:P159 ?j . ?j rdf:type ontology:Q20667921 . ?c rdf:type ontology:Q7210356 } UNION { ?c property:P159 ?j . ?j rdf:type ontology:Q20667921 . ?c rdf:type ontology:Q874405 } } GROUP BY ?j } } . { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?o ) WHERE { { ?i property:P159 ?x . ?x rdf:type ontology:Q20667921 . ?i rdf:type ontology:Q7210356 } UNION { ?i property:P159 ?x . ?x rdf:type ontology:Q20667921 . ?i rdf:type ontology:Q874405 } } GROUP BY ?x } . FILTER ( ?o = ?e ) }
action argmax
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type social group
[[{'concept': 'political organization'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?e ) { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?s ) WHERE { { ?c property:headquarters_location ?j . ?j rdf:type ontology:type_of_french_administrative_division . ?c rdf:type ontology:political_organization } UNION { ?c property:headquarters_location ?j . ?j rdf:type ontology:type_of_french_administrative_division . ?c rdf:type ontology:social_group } } GROUP BY ?j } } . { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?o ) WHERE { { ?i property:headquarters_location ?x . ?x rdf:type ontology:type_of_french_administrative_division . ?i rdf:type ontology:political_organization } UNION { ?i property:headquarters_location ?x . ?x rdf:type ontology:type_of_french_administrative_division . ?i rdf:type ontology:social_group } } GROUP BY ?x } . FILTER ( ?o = ?e ) }
[]
type of french administrative division political organization social group
Q9733
SYSTEM
Nouméa
Q9733
(c(Q7210356)|c(Q874405),P159,c(Q20667921))
action argmax
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q874405
[ANSWER] is the headquarters of max number of political organizations and social groups located
[[{'concept': 'Q7210356'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?e ) { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?s ) WHERE { { ?c property:P159 ?j . ?j rdf:type ontology:Q20667921 . ?c rdf:type ontology:Q7210356 } UNION { ?c property:P159 ?j . ?j rdf:type ontology:Q20667921 . ?c rdf:type ontology:Q874405 } } GROUP BY ?j } } . { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?o ) WHERE { { ?i property:P159 ?x . ?x rdf:type ontology:Q20667921 . ?i rdf:type ontology:Q7210356 } UNION { ?i property:P159 ?x . ?x rdf:type ontology:Q20667921 . ?i rdf:type ontology:Q874405 } } GROUP BY ?x } . FILTER ( ?o = ?e ) }
Nouméa
Nouméa is the headquarters of max number of political organizations and social groups located
Nouméa
action argmax
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type social group
[[{'concept': 'political organization'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?e ) { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?s ) WHERE { { ?c property:headquarters_location ?j . ?j rdf:type ontology:type_of_french_administrative_division . ?c rdf:type ontology:political_organization } UNION { ?c property:headquarters_location ?j . ?j rdf:type ontology:type_of_french_administrative_division . ?c rdf:type ontology:social_group } } GROUP BY ?j } } . { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?o ) WHERE { { ?i property:headquarters_location ?x . ?x rdf:type ontology:type_of_french_administrative_division . ?i rdf:type ontology:political_organization } UNION { ?i property:headquarters_location ?x . ?x rdf:type ontology:type_of_french_administrative_division . ?i rdf:type ontology:social_group } } GROUP BY ?x } . FILTER ( ?o = ?e ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q9733 Q3237506
P17
Q15617994
USER
How many administrative territories are Nouméa or Valença Municipality situated in ?
(Q9733,P17,c(Q15617994)) (Q3237506,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q9733
relation P17
type Q15617994
action filter_type
action find
entity Q3237506
relation P17
type Q15617994
['Q9733', 'P17', {'concept': 'Q15617994'}] ['Q3237506', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { resource:Q3237506 property:P17 ?a . ?a rdf:type ontology:Q15617994 } UNION { resource:Q9733 property:P17 ?a . ?a rdf:type ontology:Q15617994 } }
Nouméa Valença Municipality
action count
action union
action filter_type
action find
entity Nouméa
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Valença Municipality
relation country
type designation for an administrative territorial entity
['Nouméa', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Valença Municipality', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { resource:Valença_Municipality property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Nouméa property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q142 Q45
(Q9733,P17,c(Q15617994)) (Q3237506,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q9733
relation P17
type Q15617994
action filter_type
action find
entity Q3237506
relation P17
type Q15617994
[ANSWER]
['Q9733', 'P17', {'concept': 'Q15617994'}] ['Q3237506', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { resource:Q3237506 property:P17 ?a . ?a rdf:type ontology:Q15617994 } UNION { resource:Q9733 property:P17 ?a . ?a rdf:type ontology:Q15617994 } }
France Portugal
2
action count
action union
action filter_type
action find
entity Nouméa
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Valença Municipality
relation country
type designation for an administrative territorial entity
['Nouméa', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Valença Municipality', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { resource:Valença_Municipality property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Nouméa property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]