Simple Question (Direct)
Simple Question
Q18636976
P20
Q20667921
USER
Where did the expiration of Jean-François Izoard occur ?
(Q18636976,P20,c(Q20667921))
action filter_type
action find
entity Q18636976
relation P20
type Q20667921
['Q18636976', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?w WHERE { resource:Q18636976 property:P20 ?w . ?w rdf:type ontology:Q20667921 }
Jean-François Izoard
action filter_type
action find
entity Jean-François Izoard
relation place of death
type type of french administrative division
['Jean-François Izoard', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?w WHERE { resource:Jean-François_Izoard property:place_of_death ?w . ?w rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q207610
SYSTEM
Embrun
Q207610
(Q18636976,P20,c(Q20667921))
action filter_type
action find
entity Q18636976
relation P20
type Q20667921
The expiration of Jean-François Izoard occurred ' [ANSWER]
['Q18636976', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?w WHERE { resource:Q18636976 property:P20 ?w . ?w rdf:type ontology:Q20667921 }
Embrun
The expiration of Jean-François Izoard occurred ' Embrun
Embrun
action filter_type
action find
entity Jean-François Izoard
relation place of death
type type of french administrative division
['Jean-François Izoard', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?w WHERE { resource:Jean-François_Izoard property:place_of_death ?w . ?w rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18636976
P39
Q12737077
USER
Which occupation was a position occupied by Jean-François Izoard ?
(Q18636976,P39,c(Q12737077))
action filter_type
action find
entity Q18636976
relation P39
type Q12737077
['Q18636976', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q18636976 property:P39 ?y }
Jean-François Izoard
action filter_type
action find
entity Jean-François Izoard
relation position held
type occupation
['Jean-François Izoard', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Jean-François_Izoard property:position_held ?y }
[]
occupation
Q3044918
SYSTEM
member of the French National Assembly
Q3044918
(Q18636976,P39,c(Q12737077))
action filter_type
action find
entity Q18636976
relation P39
type Q12737077
A member of the French National Assembly was a position occupied by Jean-François Izoard
['Q18636976', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q18636976 property:P39 ?y }
member of the French National Assembly
A member of the French National Assembly was a position occupied by Jean-François Izoard
member of the French National Assembly
action filter_type
action find
entity Jean-François Izoard
relation position held
type occupation
['Jean-François Izoard', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Jean-François_Izoard property:position_held ?y }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q3044918 Q3172 Q266721
P17
Q15617994
USER
Is that occupation present in Fehmarn and Schönau ?
(Q3044918,P17,Q3172) (Q3044918,P17,Q266721)
action is_in
entity Q3044918
action intersection
action find_reverse
entity Q3172
relation P17
action find_reverse
entity Q266721
relation P17
['Q3044918', 'P17', 'Q3172'] ['Q3044918', 'P17', 'Q266721']
ASK WHERE { resource:Q3044918 property:P17 resource:Q266721 . resource:Q3044918 property:P17 resource:Q3172 }
member of the French National Assembly Fehmarn Schönau
action is_in
entity member of the French National Assembly
action intersection
action find_reverse
entity Fehmarn
relation country
action find_reverse
entity Schönau
relation country
['member of the French\xa0National Assembly', 'country', 'Fehmarn'] ['member of the French\xa0National Assembly', 'country', 'Schönau']
ASK WHERE { resource:member_of_the_French National_Assembly property:country resource:Schönau . resource:member_of_the_French National_Assembly property:country resource:Fehmarn }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q3044918,P17,Q3172) (Q3044918,P17,Q266721)
action is_in
entity Q3044918
action intersection
action find_reverse
entity Q3172
relation P17
action find_reverse
entity Q266721
relation P17
[ANSWER]
['Q3044918', 'P17', 'Q3172'] ['Q3044918', 'P17', 'Q266721']
ASK WHERE { resource:Q3044918 property:P17 resource:Q266721 . resource:Q3044918 property:P17 resource:Q3172 }
No
action is_in
entity member of the French National Assembly
action intersection
action find_reverse
entity Fehmarn
relation country
action find_reverse
entity Schönau
relation country
['member of the French\xa0National Assembly', 'country', 'Fehmarn'] ['member of the French\xa0National Assembly', 'country', 'Schönau']
ASK WHERE { resource:member_of_the_French National_Assembly property:country resource:Schönau . resource:member_of_the_French National_Assembly property:country resource:Fehmarn }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16019225 Q3172
P19 P190
Q13220204
USER
Which administrative country subdivisions are the sister cities of Fehmarn or were José Agustín Silvestre de los Santos born at ?
OR((Q3172,P190,c(Q13220204)), (Q16019225,P19,c(Q13220204)))
action filter_type
action union
action find
entity Q3172
relation P190
action find
entity Q16019225
relation P19
type Q13220204
{'OR': [['Q3172', 'P190', {'concept': 'Q13220204'}], ['Q16019225', 'P19', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q13220204 . { { resource:Q16019225 property:P19 ?q } UNION { resource:Q3172 property:P190 ?q } } }
José Agustín Silvestre de los Santos Fehmarn
action filter_type
action union
action find
entity Fehmarn
relation sister city
action find
entity José Agustín Silvestre de los Santos
relation place of birth
type second-level administrative country subdivision
{'OR': [['Fehmarn', 'sister city', {'concept': 'second-level administrative country subdivision'}], ['José Agustín Silvestre de los Santos', 'place of birth', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:second-level_administrative_country_subdivision . { { resource:José_Agustín_Silvestre_de_los_Santos property:place_of_birth ?q } UNION { resource:Fehmarn property:sister_city ?q } } }
[]
second-level administrative country subdivision
Q27892 Q40508
SYSTEM
Neringa Municipality, La Romana, La Romana
Q27892 Q40508
OR((Q3172,P190,c(Q13220204)), (Q16019225,P19,c(Q13220204)))
action filter_type
action union
action find
entity Q3172
relation P190
action find
entity Q16019225
relation P19
type Q13220204
[ANSWERS]
{'OR': [['Q3172', 'P190', {'concept': 'Q13220204'}], ['Q16019225', 'P19', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q13220204 . { { resource:Q16019225 property:P19 ?q } UNION { resource:Q3172 property:P190 ?q } } }
Neringa Municipality La Romana, La Romana
Neringa Municipality and La Romana, La Romana are the sister cities of Fehmarn or were José Agustín Silvestre de los Santos born at
Neringa Municipality La Romana, La Romana
action filter_type
action union
action find
entity Fehmarn
relation sister city
action find
entity José Agustín Silvestre de los Santos
relation place of birth
type second-level administrative country subdivision
{'OR': [['Fehmarn', 'sister city', {'concept': 'second-level administrative country subdivision'}], ['José Agustín Silvestre de los Santos', 'place of birth', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:second-level_administrative_country_subdivision . { { resource:José_Agustín_Silvestre_de_los_Santos property:place_of_birth ?q } UNION { resource:Fehmarn property:sister_city ?q } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q27892
P190
Q56061 Q15617994
USER
How many administrative territories or administrative territories are sister town of Neringa Municipality ?
(c(Q56061),P190,Q27892) (c(Q15617994),P190,Q27892)
action count
action union
action filter_type
action find_reverse
entity Q27892
relation P190
type Q56061
action filter_type
action find_reverse
entity Q27892
relation P190
type Q15617994
[{'concept': 'Q56061'}, 'P190', 'Q27892'] [{'concept': 'Q15617994'}, 'P190', 'Q27892']
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { ?z rdf:type ontology:Q15617994 . ?z property:P190 resource:Q27892 } UNION { ?z rdf:type ontology:Q56061 . ?z property:P190 resource:Q27892 } }
Neringa Municipality
action count
action union
action filter_type
action find_reverse
entity Neringa Municipality
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Neringa Municipality
relation sister city
type designation for an administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Neringa Municipality'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Neringa Municipality']
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:sister_city resource:Neringa_Municipality } UNION { ?z rdf:type ontology:administrative_territorial_entity . ?z property:sister_city resource:Neringa_Municipality } }
[]
administrative territorial entity designation for an administrative territorial entity
SYSTEM
2
Q3172 Q185555
(c(Q56061),P190,Q27892) (c(Q15617994),P190,Q27892)
action count
action union
action filter_type
action find_reverse
entity Q27892
relation P190
type Q56061
action filter_type
action find_reverse
entity Q27892
relation P190
type Q15617994
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q27892'] [{'concept': 'Q15617994'}, 'P190', 'Q27892']
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { ?z rdf:type ontology:Q15617994 . ?z property:P190 resource:Q27892 } UNION { ?z rdf:type ontology:Q56061 . ?z property:P190 resource:Q27892 } }
Fehmarn Birštonas
2
action count
action union
action filter_type
action find_reverse
entity Neringa Municipality
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Neringa Municipality
relation sister city
type designation for an administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Neringa Municipality'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Neringa Municipality']
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:sister_city resource:Neringa_Municipality } UNION { ?z rdf:type ontology:administrative_territorial_entity . ?z property:sister_city resource:Neringa_Municipality } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q984411
P1376
Q13220204 Q486972
USER
How many human settlements are center of administration for more number of administrative country subdivisions than Severskaya ?
(c(Q486972),P1376,c(Q13220204))
action count
action greater
action find_tuple_counts
relation P1376
type Q486972
type Q13220204
action count
action filter_type
action find
entity Q984411
relation P1376
type Q486972
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?l ) WHERE { ?f rdf:type ontology:Q486972 . ?m rdf:type ontology:Q13220204 . ?f property:P1376 ?m } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { resource:Q984411 property:P1376 ?c . ?c rdf:type ontology:Q486972 } } . FILTER ( ?l > ?w ) }
Severskaya
action count
action greater
action find_tuple_counts
relation capital of
type human settlement
type second-level administrative country subdivision
action count
action filter_type
action find
entity Severskaya
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?l ) WHERE { ?f rdf:type ontology:human_settlement . ?m rdf:type ontology:second-level_administrative_country_subdivision . ?f property:capital_of ?m } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { resource:Severskaya property:capital_of ?c . ?c rdf:type ontology:human_settlement } } . FILTER ( ?l > ?w ) }
[]
second-level administrative country subdivision human settlement
SYSTEM
31
Q456784 Q3344109 Q10013 Q102317 Q2303485 Q192508 Q106281 Q3344024 Q19799162 Q2918849 Q158004 Q11002429 Q275592 Q110732 Q465833 Q3344081 Q3348305 Q3299324 Q3777 Q52892 Q1799 Q52845 Q14389109 Q31487 Q11034041 Q9879 Q2734 Q106274 Q3344864 Q81220 Q147934
(c(Q486972),P1376,c(Q13220204))
action count
action greater
action find_tuple_counts
relation P1376
type Q486972
type Q13220204
action count
action filter_type
action find
entity Q984411
relation P1376
type Q486972
[ANSWER]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?l ) WHERE { ?f rdf:type ontology:Q486972 . ?m rdf:type ontology:Q13220204 . ?f property:P1376 ?m } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { resource:Q984411 property:P1376 ?c . ?c rdf:type ontology:Q486972 } } . FILTER ( ?l > ?w ) }
Ampelokipoi, Thessaloniki Huacaybamba Hardenberg Kielce Woudrichem Bergen op Zoom Tarnów Panao San Antonio del Estrecho Querobamba Piotrków Trybunalski San Miguel de Pallaques Pińczów Wałbrzych Schagen Chavinillo Puerto Inca Oisterwijk Ouagadougou Leszno Wrocław Konin Steenbergen Kraków San José de Sisa Waalwijk Skierniewice Legnica Llata Goes Jelenia Góra
31
action count
action greater
action find_tuple_counts
relation capital of
type human settlement
type second-level administrative country subdivision
action count
action filter_type
action find
entity Severskaya
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?l ) WHERE { ?f rdf:type ontology:human_settlement . ?m rdf:type ontology:second-level_administrative_country_subdivision . ?f property:capital_of ?m } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { resource:Severskaya property:capital_of ?c . ?c rdf:type ontology:human_settlement } } . FILTER ( ?l > ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1828937
P1376
Q13220204 Q486972
USER
And what about Domaniewice, Łódź Voivodeship?
(c(Q486972),P1376,c(Q13220204))
action count
action greater
action find_tuple_counts
relation P1376
type Q486972
type Q13220204
action count
action filter_type
action find
entity Q1828937
relation P1376
type Q486972
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?v ) WHERE { ?r property:P1376 ?d . ?d rdf:type ontology:Q13220204 . ?r rdf:type ontology:Q486972 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { ?z rdf:type ontology:Q486972 . resource:Q1828937 property:P1376 ?z } } . FILTER ( ?v > ?c ) }
Domaniewice, Łódź Voivodeship
action count
action greater
action find_tuple_counts
relation capital of
type human settlement
type second-level administrative country subdivision
action count
action filter_type
action find
entity Domaniewice, Łódź Voivodeship
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?v ) WHERE { ?r property:capital_of ?d . ?d rdf:type ontology:second-level_administrative_country_subdivision . ?r rdf:type ontology:human_settlement } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { ?z rdf:type ontology:human_settlement . resource:Domaniewice,_Łódź_Voivodeship property:capital_of ?z } } . FILTER ( ?v > ?c ) }
[]
second-level administrative country subdivision human settlement
SYSTEM
31
Q456784 Q3344109 Q10013 Q102317 Q2303485 Q192508 Q106281 Q3344024 Q19799162 Q2918849 Q158004 Q11002429 Q275592 Q110732 Q465833 Q3344081 Q3348305 Q3299324 Q3777 Q52892 Q1799 Q52845 Q14389109 Q31487 Q11034041 Q9879 Q2734 Q106274 Q3344864 Q81220 Q147934
(c(Q486972),P1376,c(Q13220204))
action count
action greater
action find_tuple_counts
relation P1376
type Q486972
type Q13220204
action count
action filter_type
action find
entity Q1828937
relation P1376
type Q486972
[ANSWER]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?v ) WHERE { ?r property:P1376 ?d . ?d rdf:type ontology:Q13220204 . ?r rdf:type ontology:Q486972 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { ?z rdf:type ontology:Q486972 . resource:Q1828937 property:P1376 ?z } } . FILTER ( ?v > ?c ) }
Ampelokipoi, Thessaloniki Huacaybamba Hardenberg Kielce Woudrichem Bergen op Zoom Tarnów Panao San Antonio del Estrecho Querobamba Piotrków Trybunalski San Miguel de Pallaques Pińczów Wałbrzych Schagen Chavinillo Puerto Inca Oisterwijk Ouagadougou Leszno Wrocław Konin Steenbergen Kraków San José de Sisa Waalwijk Skierniewice Legnica Llata Goes Jelenia Góra
31
action count
action greater
action find_tuple_counts
relation capital of
type human settlement
type second-level administrative country subdivision
action count
action filter_type
action find
entity Domaniewice, Łódź Voivodeship
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?v ) WHERE { ?r property:capital_of ?d . ?d rdf:type ontology:second-level_administrative_country_subdivision . ?r rdf:type ontology:human_settlement } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { ?z rdf:type ontology:human_settlement . resource:Domaniewice,_Łódź_Voivodeship property:capital_of ?z } } . FILTER ( ?v > ?c ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q207610
P119
Q502895
USER
Which person has Embrun as place of burial ?
(c(Q502895),P119,Q207610)
action filter_type
action find_reverse
entity Q207610
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q207610']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P119 resource:Q207610 }
Embrun
action filter_type
action find_reverse
entity Embrun
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Embrun']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:place_of_burial resource:Embrun }
[]
common name
Q352287
SYSTEM
Clovis Hugues
Q352287
(c(Q502895),P119,Q207610)
action filter_type
action find_reverse
entity Q207610
relation P119
type Q502895
[ANSWER] has Embrun as place of burial
[{'concept': 'Q502895'}, 'P119', 'Q207610']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P119 resource:Q207610 }
Clovis Hugues
Clovis Hugues has Embrun as place of burial
Clovis Hugues
action filter_type
action find_reverse
entity Embrun
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Embrun']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:place_of_burial resource:Embrun }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q207610
P47
Q20667921
USER
Which french administrative divisions are adjacent to that one ?
(Q352287,P47,c(Q20667921))
action filter_type
action find
entity Q207610
relation P47
type Q20667921
['Q352287', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q207610 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Embrun
action filter_type
action find
entity Embrun
relation shares border with
type type of french administrative division
['Clovis Hugues', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Embrun property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1086638 Q518200 Q1016429
SYSTEM
Réallon, Châteauroux-les-Alpes, Crots
Q1086060 Q873192 Q1086638 Q518200 Q1085603 Q1087594 Q931929 Q1016429
(Q352287,P47,c(Q20667921))
action filter_type
action find
entity Q207610
relation P47
type Q20667921
[ANSWERS] are adjacent to that one
['Q352287', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q207610 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Saint-André-d'Embrun Baratier Réallon Châteauroux-les-Alpes Saint-Sauveur Puy-Sanières Puy-Saint-Eusèbe Crots
Réallon, Châteauroux-les-Alpes and Crots are adjacent to that one
Réallon Châteauroux-les-Alpes Crots
action filter_type
action find
entity Embrun
relation shares border with
type type of french administrative division
['Clovis Hugues', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Embrun property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q20855800
P169
Q502895 Q43229 Q2424752
USER
Which people are the chief executives of more number of organizations or products than Takahiro Hachigō ?
(c(Q43229)|c(Q2424752),P169,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q43229
action find_reverse_tuple_counts
relation P169
type Q502895
type Q2424752
action count
action filter_multi_types
action find_reverse
entity Q20855800
relation P169
type Q43229
type Q2424752
[[{'concept': 'Q43229'}, {'concept': 'Q2424752'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?i ) WHERE { { ?k property:P169 ?q . ?q rdf:type ontology:Q502895 . ?k rdf:type ontology:Q43229 } UNION { ?k property:P169 ?q . ?k rdf:type ontology:Q2424752 . ?q rdf:type ontology:Q502895 } } GROUP BY ?q } . FILTER ( ?i > ?z ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?c property:P169 resource:Q20855800 . { VALUES ( ?j ) { ( ontology:Q2424752 ) ( ontology:Q43229 ) } . ?c rdf:type ?j } } } }
Takahiro Hachigō
action greater
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type organization
action find_reverse_tuple_counts
relation chief executive officer
type common name
type product
action count
action filter_multi_types
action find_reverse
entity Takahiro Hachigō
relation chief executive officer
type organization
type product
[[{'concept': 'organization'}, {'concept': 'product'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?i ) WHERE { { ?k property:chief_executive_officer ?q . ?q rdf:type ontology:common_name . ?k rdf:type ontology:organization } UNION { ?k property:chief_executive_officer ?q . ?k rdf:type ontology:product . ?q rdf:type ontology:common_name } } GROUP BY ?q } . FILTER ( ?i > ?z ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?c property:chief_executive_officer resource:Takahiro_Hachigō . { VALUES ( ?j ) { ( ontology:product ) ( ontology:organization ) } . ?c rdf:type ?j } } } }
[]
common name organization product
Q19837 Q95307 Q3528191
SYSTEM
Steve Jobs, Tom Enders, Tidjane Thiam
Q3528191 Q26878730 Q95307 Q4934 Q21806452 Q4758328 Q21030041 Q22953554 Q4008699 Q5605358 Q5558291 Q19837 Q96770
(c(Q43229)|c(Q2424752),P169,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q43229
action find_reverse_tuple_counts
relation P169
type Q502895
type Q2424752
action count
action filter_multi_types
action find_reverse
entity Q20855800
relation P169
type Q43229
type Q2424752
[ANSWERS] are the chief executives of more number of organizations or products than Takahiro Hachigō
[[{'concept': 'Q43229'}, {'concept': 'Q2424752'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?i ) WHERE { { ?k property:P169 ?q . ?q rdf:type ontology:Q502895 . ?k rdf:type ontology:Q43229 } UNION { ?k property:P169 ?q . ?k rdf:type ontology:Q2424752 . ?q rdf:type ontology:Q502895 } } GROUP BY ?q } . FILTER ( ?i > ?z ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?c property:P169 resource:Q20855800 . { VALUES ( ?j ) { ( ontology:Q2424752 ) ( ontology:Q43229 ) } . ?c rdf:type ?j } } } }
Tidjane Thiam Alex Jasin Tom Enders Larry Page Isaac Dabah Andrew Puzder John Lazar Ioannis Mytilineos Vardis Vardinogiannis Greg Brown Giannis Vardinogiannis Steve Jobs Heinrich von Pierer
Steve Jobs, Tom Enders and Tidjane Thiam are the chief executives of more number of organizations or products than Takahiro Hachigō
Steve Jobs Tom Enders Tidjane Thiam
action greater
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type organization
action find_reverse_tuple_counts
relation chief executive officer
type common name
type product
action count
action filter_multi_types
action find_reverse
entity Takahiro Hachigō
relation chief executive officer
type organization
type product
[[{'concept': 'organization'}, {'concept': 'product'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?i ) WHERE { { ?k property:chief_executive_officer ?q . ?q rdf:type ontology:common_name . ?k rdf:type ontology:organization } UNION { ?k property:chief_executive_officer ?q . ?k rdf:type ontology:product . ?q rdf:type ontology:common_name } } GROUP BY ?q } . FILTER ( ?i > ?z ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?c property:chief_executive_officer resource:Takahiro_Hachigō . { VALUES ( ?j ) { ( ontology:product ) ( ontology:organization ) } . ?c rdf:type ?j } } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P39
Q4164871 Q595523
USER
How many positions or notions were a position held by that person ?
(Q3528191,P39,c(Q4164871)) (Q3528191,P39,c(Q595523)) (Q19837,P39,c(Q4164871)) (Q19837,P39,c(Q595523)) (Q95307,P39,c(Q4164871)) (Q95307,P39,c(Q595523)) (Q3528191,P39,c(Q4164871)) (Q3528191,P39,c(Q595523))
['Q3528191', 'P39', {'concept': 'Q4164871'}] ['Q3528191', 'P39', {'concept': 'Q595523'}] ['Q19837', 'P39', {'concept': 'Q4164871'}] ['Q19837', 'P39', {'concept': 'Q595523'}] ['Q95307', 'P39', {'concept': 'Q4164871'}] ['Q95307', 'P39', {'concept': 'Q595523'}] ['Q3528191', 'P39', {'concept': 'Q4164871'}] ['Q3528191', 'P39', {'concept': 'Q595523'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q3528191 property:P39 ?z } UNION { resource:Q3528191 property:P39 ?y } UNION { resource:Q20243178 property:P39 ?z } UNION { resource:Q20243178 property:P39 ?y } UNION { resource:Q95307 property:P39 ?z } UNION { resource:Q95307 property:P39 ?y } UNION { resource:Q3528191 property:P39 ?z } UNION { resource:Q3528191 property:P39 ?y } } . ?z rdf:type ontology:Q23008351 . ?y rdf:type ontology:Q595523 }
['Tidjane Thiam', 'position held', {'concept': 'position'}] ['Tidjane Thiam', 'position held', {'concept': 'notion'}] ['Steve Jobs', 'position held', {'concept': 'position'}] ['Steve Jobs', 'position held', {'concept': 'notion'}] ['Tom Enders', 'position held', {'concept': 'position'}] ['Tom Enders', 'position held', {'concept': 'notion'}] ['Tidjane Thiam', 'position held', {'concept': 'position'}] ['Tidjane Thiam', 'position held', {'concept': 'notion'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Tidjane_Thiam property:position_held ?z } UNION { resource:Tidjane_Thiam property:position_held ?y } UNION { resource:Steve_Jobs property:position_held ?z } UNION { resource:Steve_Jobs property:position_held ?y } UNION { resource:Tom_Enders property:position_held ?z } UNION { resource:Tom_Enders property:position_held ?y } UNION { resource:Tidjane_Thiam property:position_held ?z } UNION { resource:Tidjane_Thiam property:position_held ?y } } . ?z rdf:type ontology:position . ?y rdf:type ontology:notion }
[]
position notion
Quantitative|Count|Mult. entity type|Clarification
Q19837
SYSTEM
Did you mean Steve Jobs ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q3528191 property:P39 ?z } UNION { resource:Q3528191 property:P39 ?y } UNION { resource:Q20243178 property:P39 ?z } UNION { resource:Q20243178 property:P39 ?y } UNION { resource:Q95307 property:P39 ?z } UNION { resource:Q95307 property:P39 ?y } UNION { resource:Q3528191 property:P39 ?z } UNION { resource:Q3528191 property:P39 ?y } } . ?z rdf:type ontology:Q23008351 . ?y rdf:type ontology:Q595523 }
Did you mean Steve Jobs ?
Steve Jobs
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Tidjane_Thiam property:position_held ?z } UNION { resource:Tidjane_Thiam property:position_held ?y } UNION { resource:Steve_Jobs property:position_held ?z } UNION { resource:Steve_Jobs property:position_held ?y } UNION { resource:Tom_Enders property:position_held ?z } UNION { resource:Tom_Enders property:position_held ?y } UNION { resource:Tidjane_Thiam property:position_held ?z } UNION { resource:Tidjane_Thiam property:position_held ?y } } . ?z rdf:type ontology:position . ?y rdf:type ontology:notion }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Tidjane Thiam. Could you tell me the answer for that?
(Q3528191,P39,c(Q4164871)) (Q3528191,P39,c(Q595523)) (Q19837,P39,c(Q4164871)) (Q19837,P39,c(Q595523)) (Q95307,P39,c(Q4164871)) (Q95307,P39,c(Q595523)) (Q3528191,P39,c(Q4164871)) (Q3528191,P39,c(Q595523))
Q3528191
['Q3528191', 'P39', {'concept': 'Q4164871'}] ['Q3528191', 'P39', {'concept': 'Q595523'}] ['Q19837', 'P39', {'concept': 'Q4164871'}] ['Q19837', 'P39', {'concept': 'Q595523'}] ['Q95307', 'P39', {'concept': 'Q4164871'}] ['Q95307', 'P39', {'concept': 'Q595523'}] ['Q3528191', 'P39', {'concept': 'Q4164871'}] ['Q3528191', 'P39', {'concept': 'Q595523'}]
['Tidjane Thiam', 'position held', {'concept': 'position'}] ['Tidjane Thiam', 'position held', {'concept': 'notion'}] ['Steve Jobs', 'position held', {'concept': 'position'}] ['Steve Jobs', 'position held', {'concept': 'notion'}] ['Tom Enders', 'position held', {'concept': 'position'}] ['Tom Enders', 'position held', {'concept': 'notion'}] ['Tidjane Thiam', 'position held', {'concept': 'position'}] ['Tidjane Thiam', 'position held', {'concept': 'notion'}]
[]
SYSTEM
2
Q623268 Q484876
(Q3528191,P39,c(Q4164871)) (Q3528191,P39,c(Q595523)) (Q19837,P39,c(Q4164871)) (Q19837,P39,c(Q595523)) (Q95307,P39,c(Q4164871)) (Q95307,P39,c(Q595523)) (Q3528191,P39,c(Q4164871)) (Q3528191,P39,c(Q595523))
[ANSWER]
['Q3528191', 'P39', {'concept': 'Q4164871'}] ['Q3528191', 'P39', {'concept': 'Q595523'}] ['Q19837', 'P39', {'concept': 'Q4164871'}] ['Q19837', 'P39', {'concept': 'Q595523'}] ['Q95307', 'P39', {'concept': 'Q4164871'}] ['Q95307', 'P39', {'concept': 'Q595523'}] ['Q3528191', 'P39', {'concept': 'Q4164871'}] ['Q3528191', 'P39', {'concept': 'Q595523'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q3528191 property:P39 ?z } UNION { resource:Q3528191 property:P39 ?y } UNION { resource:Q20243178 property:P39 ?z } UNION { resource:Q20243178 property:P39 ?y } UNION { resource:Q95307 property:P39 ?z } UNION { resource:Q95307 property:P39 ?y } UNION { resource:Q3528191 property:P39 ?z } UNION { resource:Q3528191 property:P39 ?y } } . ?z rdf:type ontology:Q23008351 . ?y rdf:type ontology:Q595523 }
chief financial officer chief executive officer
2
['Tidjane Thiam', 'position held', {'concept': 'position'}] ['Tidjane Thiam', 'position held', {'concept': 'notion'}] ['Steve Jobs', 'position held', {'concept': 'position'}] ['Steve Jobs', 'position held', {'concept': 'notion'}] ['Tom Enders', 'position held', {'concept': 'position'}] ['Tom Enders', 'position held', {'concept': 'notion'}] ['Tidjane Thiam', 'position held', {'concept': 'position'}] ['Tidjane Thiam', 'position held', {'concept': 'notion'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Tidjane_Thiam property:position_held ?z } UNION { resource:Tidjane_Thiam property:position_held ?y } UNION { resource:Steve_Jobs property:position_held ?z } UNION { resource:Steve_Jobs property:position_held ?y } UNION { resource:Tom_Enders property:position_held ?z } UNION { resource:Tom_Enders property:position_held ?y } UNION { resource:Tidjane_Thiam property:position_held ?z } UNION { resource:Tidjane_Thiam property:position_held ?y } } . ?z rdf:type ontology:position . ?y rdf:type ontology:notion }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q19837
P921
Q2342494 Q838948
USER
How many collectables or works of art have Steve Jobs as their principal topic ?
(c(Q2342494),P921,Q19837) (c(Q838948),P921,Q19837)
action count
action union
action filter_type
action find_reverse
entity Q19837
relation P921
type Q2342494
action filter_type
action find_reverse
entity Q19837
relation P921
type Q838948
[{'concept': 'Q2342494'}, 'P921', 'Q19837'] [{'concept': 'Q838948'}, 'P921', 'Q19837']
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { ?m rdf:type ontology:Q2342494 . ?m property:P921 resource:Q19837 } UNION { ?m rdf:type ontology:Q838948 . ?m property:P921 resource:Q19837 } }
Steve Jobs
action count
action union
action filter_type
action find_reverse
entity Steve Jobs
relation main subject
type collectable
action filter_type
action find_reverse
entity Steve Jobs
relation main subject
type work of art
[{'concept': 'collectable'}, 'main subject', 'Steve Jobs'] [{'concept': 'work of art'}, 'main subject', 'Steve Jobs']
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { ?m rdf:type ontology:collectable . ?m property:main_subject resource:Steve_Jobs } UNION { ?m rdf:type ontology:work_of_art . ?m property:main_subject resource:Steve_Jobs } }
[]
collectable work of art
SYSTEM
3
Q18754959 Q392825 Q625645
(c(Q2342494),P921,Q19837) (c(Q838948),P921,Q19837)
action count
action union
action filter_type
action find_reverse
entity Q19837
relation P921
type Q2342494
action filter_type
action find_reverse
entity Q19837
relation P921
type Q838948
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q19837'] [{'concept': 'Q838948'}, 'P921', 'Q19837']
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { ?m rdf:type ontology:Q2342494 . ?m property:P921 resource:Q19837 } UNION { ?m rdf:type ontology:Q838948 . ?m property:P921 resource:Q19837 } }
Steve Jobs Jobs Steve Jobs
3
action count
action union
action filter_type
action find_reverse
entity Steve Jobs
relation main subject
type collectable
action filter_type
action find_reverse
entity Steve Jobs
relation main subject
type work of art
[{'concept': 'collectable'}, 'main subject', 'Steve Jobs'] [{'concept': 'work of art'}, 'main subject', 'Steve Jobs']
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { ?m rdf:type ontology:collectable . ?m property:main_subject resource:Steve_Jobs } UNION { ?m rdf:type ontology:work_of_art . ?m property:main_subject resource:Steve_Jobs } }
[]