Simple Question (Direct)
Simple Question
Q32337
P21
Q290
USER
What is the sex of Lita Grey ?
(Q32337,P21,c(Q290))
action filter_type
action find
entity Q32337
relation P21
type Q290
['Q32337', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q32337 property:P21 ?v . ?v rdf:type ontology:Q290 }
Lita Grey
action filter_type
action find
entity Lita Grey
relation gender
type sex
['Lita Grey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Lita_Grey property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q32337,P21,c(Q290))
action filter_type
action find
entity Q32337
relation P21
type Q290
The sex of Lita Grey is the [ANSWER]
['Q32337', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q32337 property:P21 ?v . ?v rdf:type ontology:Q290 }
female
The sex of Lita Grey is the female
female
action filter_type
action find
entity Lita Grey
relation gender
type sex
['Lita Grey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Lita_Grey property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581072
P136
Q502895
USER
Which people have that sex as genre ?
(c(Q502895),P136,Q6581072)
action filter_type
action find_reverse
entity Q6581072
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q6581072']
SELECT DISTINCT ?q WHERE { ?q property:P136 resource:Q6581072 . ?q rdf:type ontology:Q502895 }
female
action filter_type
action find_reverse
entity female
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'female']
SELECT DISTINCT ?q WHERE { ?q property:genre resource:female . ?q rdf:type ontology:common_name }
[]
common name
Q19831537 Q23688633
SYSTEM
Luisa María Martí García, Eva Jospin
Q19831537 Q23688633
(c(Q502895),P136,Q6581072)
action filter_type
action find_reverse
entity Q6581072
relation P136
type Q502895
[ANSWERS] have that sex as genre
[{'concept': 'Q502895'}, 'P136', 'Q6581072']
SELECT DISTINCT ?q WHERE { ?q property:P136 resource:Q6581072 . ?q rdf:type ontology:Q502895 }
Luisa María Martí García Eva Jospin
Luisa María Martí García and Eva Jospin have that sex as genre
Luisa María Martí García Eva Jospin
action filter_type
action find_reverse
entity female
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'female']
SELECT DISTINCT ?q WHERE { ?q property:genre resource:female . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q23688633 Q27184
P27
Q15617994
USER
How many administrative territories are Eva Jospin or Jive Records a civilian of ?
(Q23688633,P27,c(Q15617994)) (Q27184,P27,c(Q15617994))
action count
action union
action filter_type
action find
entity Q23688633
relation P27
type Q15617994
action filter_type
action find
entity Q27184
relation P27
type Q15617994
['Q23688633', 'P27', {'concept': 'Q15617994'}] ['Q27184', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { { ?d rdf:type ontology:Q15617994 . resource:Q23688633 property:P27 ?d } UNION { ?d rdf:type ontology:Q15617994 . resource:Q27184 property:P27 ?d } }
Eva Jospin Jive Records
action count
action union
action filter_type
action find
entity Eva Jospin
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Jive Records
relation country of citizenship
type designation for an administrative territorial entity
['Eva Jospin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Jive Records', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Eva_Jospin property:country_of_citizenship ?d } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jive_Records property:country_of_citizenship ?d } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q142 Q184
(Q23688633,P27,c(Q15617994)) (Q27184,P27,c(Q15617994))
action count
action union
action filter_type
action find
entity Q23688633
relation P27
type Q15617994
action filter_type
action find
entity Q27184
relation P27
type Q15617994
[ANSWER]
['Q23688633', 'P27', {'concept': 'Q15617994'}] ['Q27184', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { { ?d rdf:type ontology:Q15617994 . resource:Q23688633 property:P27 ?d } UNION { ?d rdf:type ontology:Q15617994 . resource:Q27184 property:P27 ?d } }
France Belarus
2
action count
action union
action filter_type
action find
entity Eva Jospin
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Jive Records
relation country of citizenship
type designation for an administrative territorial entity
['Eva Jospin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Jive Records', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Eva_Jospin property:country_of_citizenship ?d } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jive_Records property:country_of_citizenship ?d } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3338703 Q27184
P264
Q2088357
USER
Which musical ensembles have Jive Records or Neurot Recordings as their record label ?
OR((c(Q2088357),P264,Q27184), (c(Q2088357),P264,Q3338703))
action filter_type
action union
action find_reverse
entity Q27184
relation P264
action find_reverse
entity Q3338703
relation P264
type Q2088357
{'OR': [[{'concept': 'Q2088357'}, 'P264', 'Q27184'], [{'concept': 'Q2088357'}, 'P264', 'Q3338703']]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q2088357 . { { ?l property:P264 resource:Q27184 } UNION { ?l property:P264 resource:Q3338703 } } }
Neurot Recordings Jive Records
action filter_type
action union
action find_reverse
entity Jive Records
relation record label
action find_reverse
entity Neurot Recordings
relation record label
type musical ensemble
{'OR': [[{'concept': 'musical ensemble'}, 'record label', 'Jive Records'], [{'concept': 'musical ensemble'}, 'record label', 'Neurot Recordings']]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:musical_ensemble . { { ?l property:record_label resource:Jive_Records } UNION { ?l property:record_label resource:Neurot_Recordings } } }
[]
musical ensemble
Q606650 Q1259190 Q7487359 Q913427 Q1165439 Q2819915 Q1109520 Q2280251 Q300602 Q7265265
SYSTEM
Some of them are Empyr, Wee Papa Girl Rappers, Sham Rock, Brick & Lace, JLS, A Storm of Light, Whodini, Shrinebuilder, A Tribe Called Quest, Q-Feel
Q1963980 Q2277022 Q16237705 Q843828 Q1542012 Q3284764 Q1136472 Q7994836 Q5509111 Q300602 Q963046 Q1153351 Q1259190 Q4381404 Q5375149 Q5422160 Q5280962 Q858870 Q2295497 Q913427 Q784109 Q7734756 Q3064231 Q1165439 Q4817224 Q1457831 Q158599 Q838764 Q3275525 Q8054218 Q7487359 Q2891826 Q7265265 Q4701027 Q606650 Q486825 Q1109520 Q2819915 Q1604960 Q7362001 Q1312613 Q2280251 Q2238317
OR((c(Q2088357),P264,Q27184), (c(Q2088357),P264,Q3338703))
action filter_type
action union
action find_reverse
entity Q27184
relation P264
action find_reverse
entity Q3338703
relation P264
type Q2088357
[ANSWERS]
{'OR': [[{'concept': 'Q2088357'}, 'P264', 'Q27184'], [{'concept': 'Q2088357'}, 'P264', 'Q3338703']]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q2088357 . { { ?l property:P264 resource:Q27184 } UNION { ?l property:P264 resource:Q3338703 } } }
Nakatomi Shanks & Bigfoot Imajin Crustation Grails Mama's Boys Ufomammut White Hot Odyssey Funeral Party A Tribe Called Quest south side UGK Wee Papa Girl Rappers Romeo's Daughter Enablers Extra Prolific Dirtie Blonde Big Fun Smoke City Brick & Lace Git Fresh The Forces of Evil Factory 81 JLS Atom Smash Steps Hed PE Tight Fit Made Out of Babies Yob Sham Rock Battle of Mice Q-Feel Akimbo Empyr Three Days Grace Whodini A Storm of Light House of Low Culture Roman Holliday Kyo Shrinebuilder Amenra
Shrinebuilder, A Tribe called Quest and Q-Feel have Jive Records or Neurot Recordings as their record label
Empyr Wee Papa Girl Rappers Sham Rock Brick & Lace JLS A Storm of Light Whodini Shrinebuilder A Tribe Called Quest Q-Feel
action filter_type
action union
action find_reverse
entity Jive Records
relation record label
action find_reverse
entity Neurot Recordings
relation record label
type musical ensemble
{'OR': [[{'concept': 'musical ensemble'}, 'record label', 'Jive Records'], [{'concept': 'musical ensemble'}, 'record label', 'Neurot Recordings']]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:musical_ensemble . { { ?l property:record_label resource:Jive_Records } UNION { ?l property:record_label resource:Neurot_Recordings } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q23688633
P21 P40
Q502895
USER
Which people have Eva Jospin as an offspring and have the gender as male ?
AND((c(Q502895),P40,Q23688633), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q23688633
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q23688633'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P21 resource:Q6581097 . ?i property:P40 resource:Q23688633 }
male Eva Jospin
action filter_type
action intersection
action find_reverse
entity Eva Jospin
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Eva Jospin'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:gender resource:male . ?i property:child resource:Eva_Jospin }
[]
common name
Q187099
SYSTEM
Lionel Jospin
Q187099
AND((c(Q502895),P40,Q23688633), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q23688633
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Eva Jospin as an offspring and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q23688633'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P21 resource:Q6581097 . ?i property:P40 resource:Q23688633 }
Lionel Jospin
Lionel Jospin have Eva Jospin as an offspring and have the gender as male
Lionel Jospin
action filter_type
action intersection
action find_reverse
entity Eva Jospin
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Eva Jospin'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:gender resource:male . ?i property:child resource:Eva_Jospin }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P26
Q502895
USER
How many people are the spouses of that person ?
(Q187099,P26,c(Q502895))
action count
action filter_type
action find
entity Q187099
relation P26
type Q502895
['Q187099', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q187099 property:P26 ?h . ?h rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity Lionel Jospin
relation spouse
type common name
['Lionel Jospin', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Lionel_Jospin property:spouse ?h . ?h rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q3507241
(Q187099,P26,c(Q502895))
action count
action filter_type
action find
entity Q187099
relation P26
type Q502895
[ANSWER]
['Q187099', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q187099 property:P26 ?h . ?h rdf:type ontology:Q502895 }
Sylviane Agacinski
1
action count
action filter_type
action find
entity Lionel Jospin
relation spouse
type common name
['Lionel Jospin', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Lionel_Jospin property:spouse ?h . ?h rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1129422
P1303
Q34379 Q502895
USER
Which musical instruments can greater number of people perform with than morin khuur ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1129422
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?b ) WHERE { ?r property:P1303 ?s . ?r rdf:type ontology:Q502895 . ?s rdf:type ontology:Q34379 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Q1129422 property:P1303 ?o . ?o rdf:type ontology:Q34379 } } . FILTER ( ?b > ?f ) }
morin khuur
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity morin khuur
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?b ) WHERE { ?r property:instrument ?s . ?r rdf:type ontology:common_name . ?s rdf:type ontology:musical_instrument } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:morin_khuur property:instrument ?o . ?o rdf:type ontology:musical_instrument } } . FILTER ( ?b > ?f ) }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1129422
relation P1303
type Q34379
[ANSWERS] can greater number of people perform with than morin khuur
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?b ) WHERE { ?r property:P1303 ?s . ?r rdf:type ontology:Q502895 . ?s rdf:type ontology:Q34379 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Q1129422 property:P1303 ?o . ?o rdf:type ontology:Q34379 } } . FILTER ( ?b > ?f ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
Piano, harpsichord and ondes Martenot can greater number of people perform with than morin khuur
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity morin khuur
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?b ) WHERE { ?r property:instrument ?s . ?r rdf:type ontology:common_name . ?s rdf:type ontology:musical_instrument } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:morin_khuur property:instrument ?o . ?o rdf:type ontology:musical_instrument } } . FILTER ( ?b > ?f ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q27093415 Q23688633
P19
Q56061
USER
Which administrative territories are the birthplace of Eva Jospin or Henry  Immelman ?
OR((Q23688633,P19,c(Q56061)), (Q27093415,P19,c(Q56061)))
action filter_type
action union
action find
entity Q23688633
relation P19
action find
entity Q27093415
relation P19
type Q56061
{'OR': [['Q23688633', 'P19', {'concept': 'Q56061'}], ['Q27093415', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . { VALUES ( ?n ) { ( resource:Q27093415 ) ( resource:Q23688633 ) } . ?n property:P19 ?p } }
Henry  Immelman Eva Jospin
action filter_type
action union
action find
entity Eva Jospin
relation place of birth
action find
entity Henry  Immelman
relation place of birth
type administrative territorial entity
{'OR': [['Eva Jospin', 'place of birth', {'concept': 'administrative territorial entity'}], ['Henry  Immelman', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . { VALUES ( ?n ) { ( resource:Henry__Immelman ) ( resource:Eva_Jospin ) } . ?n property:place_of_birth ?p } }
[]
administrative territorial entity
Q90 Q575780
SYSTEM
Paris, Upington
Q90 Q575780
OR((Q23688633,P19,c(Q56061)), (Q27093415,P19,c(Q56061)))
action filter_type
action union
action find
entity Q23688633
relation P19
action find
entity Q27093415
relation P19
type Q56061
[ANSWERS] are the birthplace of Eva Jospin or Henry Immelman
{'OR': [['Q23688633', 'P19', {'concept': 'Q56061'}], ['Q27093415', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . { VALUES ( ?n ) { ( resource:Q27093415 ) ( resource:Q23688633 ) } . ?n property:P19 ?p } }
Paris Upington
Paris and Upington are the birthplace of Eva Jospin or Henry Immelman
Paris Upington
action filter_type
action union
action find
entity Eva Jospin
relation place of birth
action find
entity Henry  Immelman
relation place of birth
type administrative territorial entity
{'OR': [['Eva Jospin', 'place of birth', {'concept': 'administrative territorial entity'}], ['Henry  Immelman', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . { VALUES ( ?n ) { ( resource:Henry__Immelman ) ( resource:Eva_Jospin ) } . ?n property:place_of_birth ?p } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have max number of administrative territories as their base harbour ?
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?b ) { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?f ) WHERE { ?m property:P532 ?u . ?u rdf:type ontology:Q56061 . ?m rdf:type ontology:Q2235308 } GROUP BY ?m } } . { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?h ) WHERE { ?t property:P532 ?w . ?t rdf:type ontology:Q2235308 . ?w rdf:type ontology:Q56061 } GROUP BY ?t } . FILTER ( ?h = ?b ) }
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?b ) { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?f ) WHERE { ?m property:port_of_registry ?u . ?u rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:ship_type } GROUP BY ?m } } . { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?h ) WHERE { ?t property:port_of_registry ?w . ?t rdf:type ontology:ship_type . ?w rdf:type ontology:administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?h = ?b ) }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[ANSWER] have max number of administrative territories as their base harbour
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?b ) { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?f ) WHERE { ?m property:P532 ?u . ?u rdf:type ontology:Q56061 . ?m rdf:type ontology:Q2235308 } GROUP BY ?m } } . { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?h ) WHERE { ?t property:P532 ?w . ?t rdf:type ontology:Q2235308 . ?w rdf:type ontology:Q56061 } GROUP BY ?t } . FILTER ( ?h = ?b ) }
MS Arrow
MS Arrow have max number of administrative territories as their base harbour
MS Arrow
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?b ) { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?f ) WHERE { ?m property:port_of_registry ?u . ?u rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:ship_type } GROUP BY ?m } } . { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?h ) WHERE { ?t property:port_of_registry ?w . ?t rdf:type ontology:ship_type . ?w rdf:type ontology:administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?h = ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q206988
P291
Q56061 Q2342494 Q1002697
USER
Which administrative territories are the locations of publication of greater number of collectables and periodical literatures than Cheltenham ?
(c(Q2342494)|c(Q1002697),P291,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action count
action filter_multi_types
action find_reverse
entity Q206988
relation P291
type Q2342494
type Q1002697
[[{'concept': 'Q2342494'}, {'concept': 'Q1002697'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?w ) WHERE { VALUES ( ?s ) { ( ontology:Q2342494 ) ( ontology:Q1002697 ) } . ?p rdf:type ?s } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { VALUES ( ?m ) { ( ontology:Q2342494 ) ( ontology:Q1002697 ) } . ?n rdf:type ?m } . ?n property:P291 resource:Q206988 } } . FILTER ( ?w > ?c ) }
Cheltenham
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action count
action filter_multi_types
action find_reverse
entity Cheltenham
relation place of publication
type collectable
type periodical literature
[[{'concept': 'collectable'}, {'concept': 'periodical literature'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?w ) WHERE { VALUES ( ?s ) { ( ontology:collectable ) ( ontology:periodical_literature ) } . ?p rdf:type ?s } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { VALUES ( ?m ) { ( ontology:collectable ) ( ontology:periodical_literature ) } . ?n rdf:type ?m } . ?n property:place_of_publication resource:Cheltenham } } . FILTER ( ?w > ?c ) }
[]
administrative territorial entity collectable periodical literature
Q1085 Q649 Q2807
SYSTEM
Prague, Moscow, Madrid
Q807 Q27918 Q736775 Q38511 Q3711 Q203619 Q393 Q25286 Q1544563 Q3808 Q3150 Q484678 Q11974 Q151920 Q13375 Q4093 Q2560090 Q10305 Q23337 Q33959 Q987 Q8692 Q586 Q2656 Q1289 Q4581188 Q8851 Q10690 Q25748 Q15682 Q1757 Q41876 Q1754 Q1022 Q749 Q99151 Q90 Q48329 Q3992 Q2132 Q7880 Q949651 Q81046 Q5831 Q12892 Q365 Q5836 Q132572 Q12411 Q43631 Q8818 Q11125 Q8810 Q15283655 Q4713350 Q1895 Q14323 Q14325 Q484799 Q576110 Q5083 Q1524 Q1489 Q234178 Q8678 Q490 Q495 Q2044 Q576165 Q5465 Q2141 Q54217 Q23436 Q2814 Q15093 Q2280 Q162279 Q3141 Q17151 Q1490 Q239 Q16559 Q486306 Q621 Q8686 Q994 Q3130 Q1297 Q3033 Q1563 Q170263 Q1748 Q45412 Q87 Q84 Q40269 Q2081145 Q1741 Q191133 Q538915 Q49111 Q71 Q270 Q60 Q15678 Q49241 Q3183 Q1781 Q582121 Q16567 Q1861 Q14318 Q14314 Q5092 Q15090 Q956 Q15095 Q15098 Q1492 Q8745 Q1479 Q2766547 Q18419 Q2941325 Q12258 Q202158 Q1017331 Q2090 Q2807 Q12225 Q220 Q340 Q342 Q10282 Q26421 Q188304 Q617 Q472 Q6576 Q28249 Q13666 Q9580 Q569661 Q2634 Q8356 Q49179 Q1726 Q11967 Q1729 Q8717 Q64 Q159232 Q207891 Q61 Q62 Q18125 Q5818 Q1867 Q204382 Q269 Q27393 Q1352 Q49229 Q79990 Q493794 Q6537 Q6106 Q2391194 Q10313 Q647 Q641 Q193367 Q727 Q649 Q59169 Q204720 Q24826 Q15699 Q485329 Q15696 Q985271 Q3366952 Q203263 Q213898 Q585 Q8757 Q34370 Q207639 Q41262 Q6441 Q125080 Q2066 Q12303 Q100 Q81137 Q40840 Q281839 Q485172 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q12233 Q172 Q646620 Q350 Q13972 Q215277 Q8826 Q129610 Q179385 Q29303 Q628667 Q127159 Q14336 Q34647 Q1085
(c(Q2342494)|c(Q1002697),P291,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action count
action filter_multi_types
action find_reverse
entity Q206988
relation P291
type Q2342494
type Q1002697
[ANSWERS] are the locations of publication of greater number of collectables and periodical literatures than Cheltenham
[[{'concept': 'Q2342494'}, {'concept': 'Q1002697'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?w ) WHERE { VALUES ( ?s ) { ( ontology:Q2342494 ) ( ontology:Q1002697 ) } . ?p rdf:type ?s } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { VALUES ( ?m ) { ( ontology:Q2342494 ) ( ontology:Q1002697 ) } . ?n rdf:type ?m } . ?n property:P291 resource:Q206988 } } . FILTER ( ?w > ?c ) }
Lausanne Bad Rappenau Toronto Turku Belgrade Kemi Szczecin Uppsala Hellerup Yaoundé Jena Berkeley Las Palmas de Gran Canaria Tiberias Pisa Glasgow Athol Zaragoza Salt Lake City Nice New Delhi Bilbao Bonn Palermo Grenoble Straume Málaga Cardiff Gävle Cádiz Helsinki Reims Stockholm Stuttgart Groningen Ourense Paris Mariehamn Liège Victoria Toulouse Wilmington Charleroi Melilla Antwerp Cologne Toledo Tiraspol Pontevedra Leiden Valencia Lugo Granada Elverum Alcones Petrozavodsk Mérida Logroño Marbella Nauvoo Seattle Athens Mexico City Bangor Rio de Janeiro Milan Turin Florence Warsaw Cape Town Halifax Norwalk Edinburgh Halle (Saale) Ciudad Real Minsk Kuopio Melbourne Thessaloniki Tokyo Brussels Austin Pensacola Versailles Shanghai Tbilisi Sydney Chicago Göttingen Havana Chester Copenhagen Coimbra Alexandria London Porto Alegre Milborne Port Vienna Fátima Mjölby Cambridge Geneva Warsaw New York City Cáceres Lexington Perth Budapest Bradenton Columbus Bangkok Vitoria-Gasteiz Santiago de Compostela Baltimore Lleida Beijing Albacete Cuenca Barcelona Vigo Bordeaux 's-Hertogenbosch Brooklyn Corbin Sabadell Hämeenlinna Westport, County Mayo Nuremberg Madrid Murcia Rome Montreal Quimper Pamplona Dordrecht Sunderland Padua Sofia Irkutsk Concord Messina Burgos Königstein im Taunus Naples Valladolid Worcester Munich Huesca Erfurt Seville Berlin Santa Cruz Kokkola Washington, D.C. San Francisco Manchester Córdoba Taipei Kouvola Tashkent Herning Chennai Durham Christchurch Dubuque Vicenza Portland Saint-Idesbald Donostia/San Sebastián Rennes Venice Porvoo Amsterdam Moscow Mo i Rana Hereford Liverpool León Ferrol Zamora The Dalles Alta Athens Preveza Oslo A Coruña Rotterdam Chichester Nottingham Montpellier Vaasa Essen Jerez de la Frontera Boston Olomouc Tampere Englewood Cliffs, New Jersey Ann Arbor Bergen Voronezh Belfast Imatra Lappeenranta Lille Santander Toronto Estella-Lizarra Cambridge Tartu Jaffna Palma Galway Greenwich Canterbury Spangenberg Bletchley Teruel Johannesburg Prague
Prague, Moscow and Madrid are the locations of publication of greater number of collectables and periodical literatures than Cheltenham
Prague Moscow Madrid
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action count
action filter_multi_types
action find_reverse
entity Cheltenham
relation place of publication
type collectable
type periodical literature
[[{'concept': 'collectable'}, {'concept': 'periodical literature'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?w ) WHERE { VALUES ( ?s ) { ( ontology:collectable ) ( ontology:periodical_literature ) } . ?p rdf:type ?s } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { VALUES ( ?m ) { ( ontology:collectable ) ( ontology:periodical_literature ) } . ?n rdf:type ?m } . ?n property:place_of_publication resource:Cheltenham } } . FILTER ( ?w > ?c ) }
[]