Simple Question (Direct)
Simple Question
Q715909
P1066
Q502895
USER
Which person was the professor of Louis-Léopold Boilly ?
(Q715909,P1066,c(Q502895))
action filter_type
action find
entity Q715909
relation P1066
type Q502895
['Q715909', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q715909 property:P1066 ?d . ?d rdf:type ontology:Q502895 }
Louis-Léopold Boilly
action filter_type
action find
entity Louis-Léopold Boilly
relation student of
type common name
['Louis-Léopold Boilly', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Louis-Léopold_Boilly property:student_of ?d . ?d rdf:type ontology:common_name }
[]
common name
Q2957907
SYSTEM
Charles-Alexandre-Joseph Caullet
Q2957907
(Q715909,P1066,c(Q502895))
action filter_type
action find
entity Q715909
relation P1066
type Q502895
[ANSWER] was the professor of Louis-Léopold Boilly
['Q715909', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q715909 property:P1066 ?d . ?d rdf:type ontology:Q502895 }
Charles-Alexandre-Joseph Caullet
Charles-Alexandre-Joseph Caullet was the professor of Louis-Léopold Boilly
Charles-Alexandre-Joseph Caullet
action filter_type
action find
entity Louis-Léopold Boilly
relation student of
type common name
['Louis-Léopold Boilly', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Louis-Léopold_Boilly property:student_of ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q715909
P106
Q12737077
USER
Which occupation has Louis-Léopold Boilly as his/her 's career ?
(Q715909,P106,c(Q12737077))
action filter_type
action find
entity Q715909
relation P106
type Q12737077
['Q715909', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q715909 property:P106 ?x }
Louis-Léopold Boilly
action filter_type
action find
entity Louis-Léopold Boilly
relation occupation
type occupation
['Louis-Léopold Boilly', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Louis-Léopold_Boilly property:occupation ?x }
[]
occupation
Q1028181
SYSTEM
painter
Q1028181
(Q715909,P106,c(Q12737077))
action filter_type
action find
entity Q715909
relation P106
type Q12737077
The [ANSWER] has Louis-Léopold Boilly as his/her 's career
['Q715909', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q715909 property:P106 ?x }
painter
The painter has Louis-Léopold Boilly as his/her 's career
painter
action filter_type
action find
entity Louis-Léopold Boilly
relation occupation
type occupation
['Louis-Léopold Boilly', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Louis-Léopold_Boilly property:occupation ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q715909
P20
Q56061
USER
Where did that person expire ?
(Q1028181,P20,c(Q56061))
action filter_type
action find
entity Q715909
relation P20
type Q56061
['Q1028181', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q715909 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Louis-Léopold Boilly
action filter_type
action find
entity Louis-Léopold Boilly
relation place of death
type administrative territorial entity
['painter', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Louis-Léopold_Boilly property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q1028181,P20,c(Q56061))
action filter_type
action find
entity Q715909
relation P20
type Q56061
That person expired in [ANSWER]
['Q1028181', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q715909 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Paris
That person expired in Paris
Paris
action filter_type
action find
entity Louis-Léopold Boilly
relation place of death
type administrative territorial entity
['painter', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Louis-Léopold_Boilly property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P417
Q1445650 Q502895 Q56061
USER
How many administrative territories have adopted lesser number of holidays or people as their patron saint than that administrative territory ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q90
relation P417
type Q1445650
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?k ) WHERE { { ?g property:P417 ?q . ?q rdf:type ontology:Q1445650 . ?g rdf:type ontology:Q56061 } UNION { ?g property:P417 ?q . ?g rdf:type ontology:Q56061 . ?q rdf:type ontology:Q502895 } } GROUP BY ?g } . FILTER ( ?k < ?w ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Q90 property:P417 ?v . { { ?v rdf:type ontology:Q1445650 } UNION { ?v rdf:type ontology:Q502895 } } } } }
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Paris
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?k ) WHERE { { ?g property:patron_saint ?q . ?q rdf:type ontology:holiday . ?g rdf:type ontology:administrative_territorial_entity } UNION { ?g property:patron_saint ?q . ?g rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:common_name } } GROUP BY ?g } . FILTER ( ?k < ?w ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Paris property:patron_saint ?v . { { ?v rdf:type ontology:holiday } UNION { ?v rdf:type ontology:common_name } } } } }
[]
holiday common name administrative territorial entity
SYSTEM
33
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q90
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?k ) WHERE { { ?g property:P417 ?q . ?q rdf:type ontology:Q1445650 . ?g rdf:type ontology:Q56061 } UNION { ?g property:P417 ?q . ?g rdf:type ontology:Q56061 . ?q rdf:type ontology:Q502895 } } GROUP BY ?g } . FILTER ( ?k < ?w ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Q90 property:P417 ?v . { { ?v rdf:type ontology:Q1445650 } UNION { ?v rdf:type ontology:Q502895 } } } } }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
33
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Paris
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?k ) WHERE { { ?g property:patron_saint ?q . ?q rdf:type ontology:holiday . ?g rdf:type ontology:administrative_territorial_entity } UNION { ?g property:patron_saint ?q . ?g rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:common_name } } GROUP BY ?g } . FILTER ( ?k < ?w ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Paris property:patron_saint ?v . { { ?v rdf:type ontology:holiday } UNION { ?v rdf:type ontology:common_name } } } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1014769 Q90
P47
Q20667921
USER
Which french administrative divisions are adjacent to Paris or Septfontaines ?
OR((Q90,P47,c(Q20667921)), (Q1014769,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q90
relation P47
action find
entity Q1014769
relation P47
type Q20667921
{'OR': [['Q90', 'P47', {'concept': 'Q20667921'}], ['Q1014769', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q90 property:P47 ?i } UNION { resource:Q1014769 property:P47 ?i } } . ?i rdf:type ontology:Q20667921 }
Septfontaines Paris
action filter_type
action union
action find
entity Paris
relation shares border with
action find
entity Septfontaines
relation shares border with
type type of french administrative division
{'OR': [['Paris', 'shares border with', {'concept': 'type of french administrative division'}], ['Septfontaines', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Paris property:shares_border_with ?i } UNION { resource:Septfontaines property:shares_border_with ?i } } . ?i rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q201982 Q193929 Q838839 Q175999 Q208889 Q193877 Q845605 Q208943 Q274327 Q18102
SYSTEM
Some of them are Clichy, Suresnes, Chapelle-d'Huin, Le Pré-Saint-Gervais, Saint-Ouen, Ivry-sur-Seine, Levier, Bagnolet, Saint-Maurice, Saint-Mandé
Q135265 Q208889 Q18102 Q274327 Q253721 Q193899 Q234728 Q205632 Q234743 Q193819 Q291420 Q838839 Q193877 Q212274 Q175999 Q923289 Q166640 Q640102 Q193370 Q201982 Q212793 Q256004 Q260661 Q208943 Q160506 Q193929 Q172455 Q189153 Q135104 Q209086 Q845605 Q48958 Q241021 Q609134
OR((Q90,P47,c(Q20667921)), (Q1014769,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q90
relation P47
action find
entity Q1014769
relation P47
type Q20667921
[ANSWERS] are adjacent to Paris or Septfontaines
{'OR': [['Q90', 'P47', {'concept': 'Q20667921'}], ['Q1014769', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q90 property:P47 ?i } UNION { resource:Q1014769 property:P47 ?i } } . ?i rdf:type ontology:Q20667921 }
Issy-les-Moulineaux Saint-Ouen Saint-Mandé Saint-Maurice Malakoff Fontenay-sous-Bois Vanves Aubervilliers Puteaux Vincennes Évillers Chapelle-d'Huin Ivry-sur-Seine Nogent-sur-Marne Le Pré-Saint-Gervais Sombacour Levallois-Perret Gentilly Montreuil Clichy Charenton-le-Pont Les Lilas Amathay-Vésigneux Bagnolet Saint-Denis Suresnes Boulogne-Billancourt Saint-Cloud Le Kremlin-Bicêtre Pantin Levier Neuilly-sur-Seine Montrouge Joinville-le-Pont
Clichy, Suresnes, Chapelle-d'Huin, Le Pré-Saint-Gervais, Saint-Ouen, Ivry-sur-Seine, Levier, Bagnolet, Saint-Maurice and Saint-Mandé are adjacent to Paris or Septfontaines
Clichy Suresnes Chapelle-d'Huin Le Pré-Saint-Gervais Saint-Ouen Ivry-sur-Seine Levier Bagnolet Saint-Maurice Saint-Mandé
action filter_type
action union
action find
entity Paris
relation shares border with
action find
entity Septfontaines
relation shares border with
type type of french administrative division
{'OR': [['Paris', 'shares border with', {'concept': 'type of french administrative division'}], ['Septfontaines', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Paris property:shares_border_with ?i } UNION { resource:Septfontaines property:shares_border_with ?i } } . ?i rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16606287 Q715909
P27
Q15617994
USER
Which administrative territories are Louis-Léopold Boilly or Silvio Marini a civilian of ?
OR((Q715909,P27,c(Q15617994)), (Q16606287,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q715909
relation P27
action find
entity Q16606287
relation P27
type Q15617994
{'OR': [['Q715909', 'P27', {'concept': 'Q15617994'}], ['Q16606287', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { { resource:Q715909 property:P27 ?s } UNION { resource:Q16606287 property:P27 ?s } } }
Silvio Marini Louis-Léopold Boilly
action filter_type
action union
action find
entity Louis-Léopold Boilly
relation country of citizenship
action find
entity Silvio Marini
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Louis-Léopold Boilly', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Silvio Marini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Louis-Léopold_Boilly property:country_of_citizenship ?s } UNION { resource:Silvio_Marini property:country_of_citizenship ?s } } }
[]
designation for an administrative territorial entity
Q142 Q38
SYSTEM
France, Italy
Q142 Q38
OR((Q715909,P27,c(Q15617994)), (Q16606287,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q715909
relation P27
action find
entity Q16606287
relation P27
type Q15617994
[ANSWERS] are Louis-Léopold Boilly or Silvio Marini a civilian of
{'OR': [['Q715909', 'P27', {'concept': 'Q15617994'}], ['Q16606287', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { { resource:Q715909 property:P27 ?s } UNION { resource:Q16606287 property:P27 ?s } } }
France Italy
France and Italy are Louis-Léopold Boilly or Silvio Marini a civilian of
France Italy
action filter_type
action union
action find
entity Louis-Léopold Boilly
relation country of citizenship
action find
entity Silvio Marini
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Louis-Léopold Boilly', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Silvio Marini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Louis-Léopold_Boilly property:country_of_citizenship ?s } UNION { resource:Silvio_Marini property:country_of_citizenship ?s } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q10405609
P495
Q838948
USER
Are those administrative territories a country of origin of Škola základ života ?
(Q10405609,P495,Q142) (Q10405609,P495,Q38)
action is_in
entity prev_answer
action find
entity Q10405609
relation P495
['Q10405609', 'P495', 'Q142'] ['Q10405609', 'P495', 'Q38']
ASK WHERE { resource:Q10405609 property:P495 ?a . VALUES ( ?a ) { ( resource:Q142 ) ( resource:Q38 ) } }
Škola základ života
action is_in
entity prev_answer
action find
entity Škola základ života
relation country of origin
['Škola základ života', 'country of origin', 'France'] ['Škola základ života', 'country of origin', 'Italy']
ASK WHERE { resource:Škola_základ_života property:country_of_origin ?a . VALUES ( ?a ) { ( resource:France ) ( resource:Italy ) } }
[]
work of art
SYSTEM
NO
(Q10405609,P495,Q142) (Q10405609,P495,Q38)
action is_in
entity prev_answer
action find
entity Q10405609
relation P495
[ANSWER]
['Q10405609', 'P495', 'Q142'] ['Q10405609', 'P495', 'Q38']
ASK WHERE { resource:Q10405609 property:P495 ?a . VALUES ( ?a ) { ( resource:Q142 ) ( resource:Q38 ) } }
No
action is_in
entity prev_answer
action find
entity Škola základ života
relation country of origin
['Škola základ života', 'country of origin', 'France'] ['Škola základ života', 'country of origin', 'Italy']
ASK WHERE { resource:Škola_základ_života property:country_of_origin ?a . VALUES ( ?a ) { ( resource:France ) ( resource:Italy ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q38 Q4983666 Q902
P530
Q15617994
USER
Is Italy known to have diplomatic connections with Bucyrus City School District and Bangladesh ?
(Q38,P530,Q4983666) (Q38,P530,Q902)
action is_in
entity Q38
action intersection
action find_reverse
entity Q4983666
relation P530
action find_reverse
entity Q902
relation P530
['Q38', 'P530', 'Q4983666'] ['Q38', 'P530', 'Q902']
ASK WHERE { resource:Q38 property:P530 resource:Q4983666 . resource:Q38 property:P530 resource:Q902 }
Italy Bucyrus City School District Bangladesh
action is_in
entity Italy
action intersection
action find_reverse
entity Bucyrus City School District
relation diplomatic relation
action find_reverse
entity Bangladesh
relation diplomatic relation
['Italy', 'diplomatic relation', 'Bucyrus City School District'] ['Italy', 'diplomatic relation', 'Bangladesh']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Bucyrus_City_School_District . resource:Italy property:diplomatic_relation resource:Bangladesh }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q38,P530,Q4983666) (Q38,P530,Q902)
action is_in
entity Q38
action intersection
action find_reverse
entity Q4983666
relation P530
action find_reverse
entity Q902
relation P530
[ANSWER]
['Q38', 'P530', 'Q4983666'] ['Q38', 'P530', 'Q902']
ASK WHERE { resource:Q38 property:P530 resource:Q4983666 . resource:Q38 property:P530 resource:Q902 }
No
action is_in
entity Italy
action intersection
action find_reverse
entity Bucyrus City School District
relation diplomatic relation
action find_reverse
entity Bangladesh
relation diplomatic relation
['Italy', 'diplomatic relation', 'Bucyrus City School District'] ['Italy', 'diplomatic relation', 'Bangladesh']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Bucyrus_City_School_District . resource:Italy property:diplomatic_relation resource:Bangladesh }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q2342494 Q17638008
USER
Which occupations are depicted in max number of collectables or game equipment ?
(c(Q2342494)|c(Q17638008),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
[[{'concept': 'Q2342494'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?c ) WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:Q17638008 ) ( ontology:Q2342494 ) } } GROUP BY ?e } . FILTER ( ?c = ?s ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?s ) { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?g ) WHERE { { ?k property:P180 ?n . ?n rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q2342494 } UNION { ?k property:P180 ?n . ?n rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q17638008 } } GROUP BY ?n } } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
[[{'concept': 'collectable'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?c ) WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:game_equipment ) ( ontology:collectable ) } } GROUP BY ?e } . FILTER ( ?c = ?s ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?s ) { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?g ) WHERE { { ?k property:depicts ?n . ?n rdf:type ontology:occupation . ?k rdf:type ontology:collectable } UNION { ?k property:depicts ?n . ?n rdf:type ontology:occupation . ?k rdf:type ontology:game_equipment } } GROUP BY ?n } } }
[]
occupation collectable game equipment
Q12097
SYSTEM
king
Q12097
(c(Q2342494)|c(Q17638008),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
The [ANSWER] is depicted in max number of collectables or game equipment
[[{'concept': 'Q2342494'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?c ) WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:Q17638008 ) ( ontology:Q2342494 ) } } GROUP BY ?e } . FILTER ( ?c = ?s ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?s ) { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?g ) WHERE { { ?k property:P180 ?n . ?n rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q2342494 } UNION { ?k property:P180 ?n . ?n rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q17638008 } } GROUP BY ?n } } }
king
The king is depicted in max number of collectables or game equipment
king
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
[[{'concept': 'collectable'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?c ) WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:game_equipment ) ( ontology:collectable ) } } GROUP BY ?e } . FILTER ( ?c = ?s ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?s ) { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?g ) WHERE { { ?k property:depicts ?n . ?n rdf:type ontology:occupation . ?k rdf:type ontology:collectable } UNION { ?k property:depicts ?n . ?n rdf:type ontology:occupation . ?k rdf:type ontology:game_equipment } } GROUP BY ?n } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q193929 Q476605
P47
Q13220204
USER
How many administrative country subdivisions are bordered by Suresnes or Sam Roi Yot ?
(Q193929,P47,c(Q13220204)) (Q476605,P47,c(Q13220204))
action count
action union
action filter_type
action find
entity Q193929
relation P47
type Q13220204
action filter_type
action find
entity Q476605
relation P47
type Q13220204
['Q193929', 'P47', {'concept': 'Q13220204'}] ['Q476605', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { ?w rdf:type ontology:Q13220204 . resource:Q193929 property:P47 ?w } UNION { resource:Q476605 property:P47 ?w . ?w rdf:type ontology:Q13220204 } }
Suresnes Sam Roi Yot
action count
action union
action filter_type
action find
entity Suresnes
relation shares border with
type second-level administrative country subdivision
action filter_type
action find
entity Sam Roi Yot
relation shares border with
type second-level administrative country subdivision
['Suresnes', 'shares border with', {'concept': 'second-level administrative country subdivision'}] ['Sam Roi Yot', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { ?w rdf:type ontology:second-level_administrative_country_subdivision . resource:Suresnes property:shares_border_with ?w } UNION { resource:Sam_Roi_Yot property:shares_border_with ?w . ?w rdf:type ontology:second-level_administrative_country_subdivision } }
[]
second-level administrative country subdivision
SYSTEM
2
Q475843 Q476524
(Q193929,P47,c(Q13220204)) (Q476605,P47,c(Q13220204))
action count
action union
action filter_type
action find
entity Q193929
relation P47
type Q13220204
action filter_type
action find
entity Q476605
relation P47
type Q13220204
[ANSWER]
['Q193929', 'P47', {'concept': 'Q13220204'}] ['Q476605', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { ?w rdf:type ontology:Q13220204 . resource:Q193929 property:P47 ?w } UNION { resource:Q476605 property:P47 ?w . ?w rdf:type ontology:Q13220204 } }
Kui Buri Pran Buri
2
action count
action union
action filter_type
action find
entity Suresnes
relation shares border with
type second-level administrative country subdivision
action filter_type
action find
entity Sam Roi Yot
relation shares border with
type second-level administrative country subdivision
['Suresnes', 'shares border with', {'concept': 'second-level administrative country subdivision'}] ['Sam Roi Yot', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { ?w rdf:type ontology:second-level_administrative_country_subdivision . resource:Suresnes property:shares_border_with ?w } UNION { resource:Sam_Roi_Yot property:shares_border_with ?w . ?w rdf:type ontology:second-level_administrative_country_subdivision } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q193929
P159
Q43229 Q17502905
USER
How many organizations or the medias have HQ at Suresnes ?
(c(Q43229),P159,Q193929) (c(Q17502905),P159,Q193929)
action count
action union
action filter_type
action find_reverse
entity Q193929
relation P159
type Q43229
action filter_type
action find_reverse
entity Q193929
relation P159
type Q17502905
[{'concept': 'Q43229'}, 'P159', 'Q193929'] [{'concept': 'Q17502905'}, 'P159', 'Q193929']
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { ?n rdf:type ontology:Q43229 . ?n property:P159 resource:Q193929 } UNION { ?n property:P159 resource:Q193929 . ?n rdf:type ontology:Q17502905 } }
Suresnes
action count
action union
action filter_type
action find_reverse
entity Suresnes
relation headquarters location
type organization
action filter_type
action find_reverse
entity Suresnes
relation headquarters location
type the media
[{'concept': 'organization'}, 'headquarters location', 'Suresnes'] [{'concept': 'the media'}, 'headquarters location', 'Suresnes']
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { ?n rdf:type ontology:organization . ?n property:headquarters_location resource:Suresnes } UNION { ?n property:headquarters_location resource:Suresnes . ?n rdf:type ontology:the_media } }
[]
organization the media
SYSTEM
7
Q2140157 Q907487 Q3297872 Q3205976 Q1166565 Q7828024 Q3216152
(c(Q43229),P159,Q193929) (c(Q17502905),P159,Q193929)
action count
action union
action filter_type
action find_reverse
entity Q193929
relation P159
type Q43229
action filter_type
action find_reverse
entity Q193929
relation P159
type Q17502905
[ANSWER]
[{'concept': 'Q43229'}, 'P159', 'Q193929'] [{'concept': 'Q17502905'}, 'P159', 'Q193929']
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { ?n rdf:type ontology:Q43229 . ?n property:P159 resource:Q193929 } UNION { ?n property:P159 resource:Q193929 . ?n rdf:type ontology:Q17502905 } }
Saviem Servier Masternaut LD Lines Darracq Total Immersion Lagardère Active
7
action count
action union
action filter_type
action find_reverse
entity Suresnes
relation headquarters location
type organization
action filter_type
action find_reverse
entity Suresnes
relation headquarters location
type the media
[{'concept': 'organization'}, 'headquarters location', 'Suresnes'] [{'concept': 'the media'}, 'headquarters location', 'Suresnes']
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { ?n rdf:type ontology:organization . ?n property:headquarters_location resource:Suresnes } UNION { ?n property:headquarters_location resource:Suresnes . ?n rdf:type ontology:the_media } }
[]