Simple Question (Direct)
Simple Question
Q1083666
P21
Q290
USER
What is the sex of Christine Lehder ?
(Q1083666,P21,c(Q290))
action filter_type
action find
entity Q1083666
relation P21
type Q290
['Q1083666', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q1083666 property:P21 ?n . ?n rdf:type ontology:Q290 }
Christine Lehder
action filter_type
action find
entity Christine Lehder
relation gender
type sex
['Christine Lehder', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Christine_Lehder property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q1083666,P21,c(Q290))
action filter_type
action find
entity Q1083666
relation P21
type Q290
The sex of Christine Lehder is the [ANSWER]
['Q1083666', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q1083666 property:P21 ?n . ?n rdf:type ontology:Q290 }
female
The sex of Christine Lehder is the female
female
action filter_type
action find
entity Christine Lehder
relation gender
type sex
['Christine Lehder', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Christine_Lehder property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1083666
P937
Q56061
USER
What is the location where Christine Lehder worked ?
(Q1083666,P937,c(Q56061))
action filter_type
action find
entity Q1083666
relation P937
type Q56061
['Q1083666', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q1083666 property:P937 ?n . ?n rdf:type ontology:Q56061 }
Christine Lehder
action filter_type
action find
entity Christine Lehder
relation work location
type administrative territorial entity
['Christine Lehder', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Christine_Lehder property:work_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q586
SYSTEM
Bonn
Q586
(Q1083666,P937,c(Q56061))
action filter_type
action find
entity Q1083666
relation P937
type Q56061
The location Christine Lehder worked is in [ANSWER]
['Q1083666', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q1083666 property:P937 ?n . ?n rdf:type ontology:Q56061 }
Bonn
The location Christine Lehder worked is in Bonn
Bonn
action filter_type
action find
entity Christine Lehder
relation work location
type administrative territorial entity
['Christine Lehder', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Christine_Lehder property:work_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q85375
Q56061
USER
And what about Emil Stürtz?
(Q85375,P937,c(Q56061))
action filter_type
action find
entity Q85375
relation P937
type Q56061
['Q85375', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q85375 property:P937 ?k }
Emil Stürtz
action filter_type
action find
entity Emil Stürtz
relation work location
type administrative territorial entity
['Emil Stürtz', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Emil_Stürtz property:work_location ?k }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q85375,P937,c(Q56061))
action filter_type
action find
entity Q85375
relation P937
type Q56061
[ANSWER]
['Q85375', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q85375 property:P937 ?k }
Berlin
Berlin
action filter_type
action find
entity Emil Stürtz
relation work location
type administrative territorial entity
['Emil Stürtz', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Emil_Stürtz property:work_location ?k }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q64 Q552483
P6
Q502895
USER
Is Hans-Jochen Vogel the head of the government of Berlin ?
(Q64,P6,Q552483)
action is_in
entity Q552483
action find
entity Q64
relation P6
['Q64', 'P6', 'Q552483']
ASK WHERE { resource:Q64 property:P6 resource:Q552483 }
Berlin Hans-Jochen Vogel
action is_in
entity Hans-Jochen Vogel
action find
entity Berlin
relation head of government
['Berlin', 'head of government', 'Hans-Jochen Vogel']
ASK WHERE { resource:Berlin property:head_of_government resource:Hans-Jochen_Vogel }
[]
common name
SYSTEM
YES
(Q64,P6,Q552483)
action is_in
entity Q552483
action find
entity Q64
relation P6
[ANSWER]
['Q64', 'P6', 'Q552483']
ASK WHERE { resource:Q64 property:P6 resource:Q552483 }
Yes
action is_in
entity Hans-Jochen Vogel
action find
entity Berlin
relation head of government
['Berlin', 'head of government', 'Hans-Jochen Vogel']
ASK WHERE { resource:Berlin property:head_of_government resource:Hans-Jochen_Vogel }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q64 Q17606200
P6
Q502895
USER
How many people are the heads of the government of Berlin or Government of Manuel Valls II ?
(Q64,P6,c(Q502895)) (Q17606200,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q64
relation P6
type Q502895
action filter_type
action find
entity Q17606200
relation P6
type Q502895
['Q64', 'P6', {'concept': 'Q502895'}] ['Q17606200', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { VALUES ( ?f ) { ( resource:Q17606200 ) ( resource:Q64 ) } . ?f property:P6 ?b }
Berlin Government of Manuel Valls II
action count
action union
action filter_type
action find
entity Berlin
relation head of government
type common name
action filter_type
action find
entity Government of Manuel Valls II
relation head of government
type common name
['Berlin', 'head of government', {'concept': 'common name'}] ['Government of Manuel Valls II', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { VALUES ( ?f ) { ( resource:Government_of_Manuel_Valls_II ) ( resource:Berlin ) } . ?f property:head_of_government ?b }
[]
common name
SYSTEM
15
Q705862 Q8863 Q552483 Q61085 Q2514 Q157 Q102844 Q650878 Q2567 Q96399 Q68748 Q60957 Q215756 Q69232 Q213561
(Q64,P6,c(Q502895)) (Q17606200,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q64
relation P6
type Q502895
action filter_type
action find
entity Q17606200
relation P6
type Q502895
[ANSWER]
['Q64', 'P6', {'concept': 'Q502895'}] ['Q17606200', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { VALUES ( ?f ) { ( resource:Q17606200 ) ( resource:Q64 ) } . ?f property:P6 ?b }
Heinrich Albertz Klaus Wowereit Hans-Jochen Vogel Walter Momper Willy Brandt François Hollande Michael Müller Otto Suhr Richard von Weizsäcker Franz Amrehn Dietrich Stobbe Eberhard Diepgen Klaus Schütz Walther Schreiber Ernst Reuter
15
action count
action union
action filter_type
action find
entity Berlin
relation head of government
type common name
action filter_type
action find
entity Government of Manuel Valls II
relation head of government
type common name
['Berlin', 'head of government', {'concept': 'common name'}] ['Government of Manuel Valls II', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { VALUES ( ?f ) { ( resource:Government_of_Manuel_Valls_II ) ( resource:Berlin ) } . ?f property:head_of_government ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P1027
Q618779
USER
Which award is awarded by Berlin ?
(c(Q618779),P1027,Q64)
action filter_type
action find_reverse
entity Q64
relation P1027
type Q618779
[{'concept': 'Q618779'}, 'P1027', 'Q64']
SELECT DISTINCT ?v WHERE { ?v property:P1027 resource:Q64 . ?v rdf:type ontology:Q618779 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation conferred by
type award
[{'concept': 'award'}, 'conferred by', 'Berlin']
SELECT DISTINCT ?v WHERE { ?v property:conferred_by resource:Berlin . ?v rdf:type ontology:award }
[]
award
Q473527
SYSTEM
Order of Merit of Berlin
Q473527
(c(Q618779),P1027,Q64)
action filter_type
action find_reverse
entity Q64
relation P1027
type Q618779
Berlin [ANSWER] is awarded by Berlin
[{'concept': 'Q618779'}, 'P1027', 'Q64']
SELECT DISTINCT ?v WHERE { ?v property:P1027 resource:Q64 . ?v rdf:type ontology:Q618779 }
Order of Merit of Berlin
Berlin Order of Merit of Berlin is awarded by Berlin
Order of Merit of Berlin
action filter_type
action find_reverse
entity Berlin
relation conferred by
type award
[{'concept': 'award'}, 'conferred by', 'Berlin']
SELECT DISTINCT ?v WHERE { ?v property:conferred_by resource:Berlin . ?v rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P119
Q502895
USER
Which people have Berlin as place of burial ?
(c(Q502895),P119,Q64)
action filter_type
action find_reverse
entity Q64
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q64']
SELECT DISTINCT ?a WHERE { ?a property:P119 resource:Q64 . ?a rdf:type ontology:Q502895 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Berlin']
SELECT DISTINCT ?a WHERE { ?a property:place_of_burial resource:Berlin . ?a rdf:type ontology:common_name }
[]
common name
Q104985 Q46096 Q574810
SYSTEM
Klaus Clusius, Felix Mendelssohn Bartholdy, Henry Eyring
Q2167593 Q598379 Q112253 Q720436 Q114020 Q105575 Q85914 Q27883 Q103851 Q102501 Q6351902 Q110425 Q380807 Q76935 Q74019 Q68231 Q1791652 Q68040 Q97457 Q65622 Q1123151 Q102045 Q3441313 Q78166 Q113597 Q115470 Q107352 Q574810 Q16018982 Q110402 Q46096 Q1068631 Q110721 Q6279788 Q6203829 Q1575696 Q111637 Q270281 Q2865001 Q110749 Q12024066 Q111567 Q1389571 Q73604 Q112373 Q84706 Q16509309 Q84560 Q7562893 Q1063922 Q61806 Q1036480 Q104985 Q64218 Q721465 Q111861 Q1415002 Q36843 Q566500 Q319865 Q257928 Q31703 Q112290 Q2901857 Q535964 Q7363980 Q105289 Q954315 Q462228 Q70824 Q95500 Q70900 Q216391 Q827873 Q108617 Q67903 Q88574
(c(Q502895),P119,Q64)
action filter_type
action find_reverse
entity Q64
relation P119
type Q502895
[ANSWERS] have Berlin as place of burial
[{'concept': 'Q502895'}, 'P119', 'Q64']
SELECT DISTINCT ?a WHERE { ?a property:P119 resource:Q64 . ?a rdf:type ontology:Q502895 }
Ross Flood Wenceslas I, Duke of Saxe-Wittenberg Martin Held Prudent Joye Käthe Gold Theodor Brugsch Herman Francis Mark Zeki Pasha Margarete Schön Felix Rexhausen Princess Sophie of Saxe-Weimar-Eisenach Adelheid Seeck Michel Ter-Pogossian Horst Faas Jacob, Margrave of Baden-Baden Otto Maximilian Umbehr Vera Zorina Ludwig Sütterlin Günther Anders Heinz Tietjen Hermann Warm Volker Vogeler Julio Mueller Georg Alexander von Müller Alfred Hirschmeier Walter Rudolf Hess Arnold Graffi Henry Eyring Dominique Benicheti Karin Hardt Felix Mendelssohn Bartholdy Cornelius Lanczos Elsa Wagner Josef František Munclinger Jiří Tancibudek Hanna Henning Leon Henkin Viorica Ursuleac Arthur Blake Will Tremper Jaroslav Souček Hermann Stehr Richard Allen Hedda Eulenberg Erna Lendvai-Dircksen Fritz Lange Ferdinand Robert-Tornow Ulrich Köhler Sophia Karp Charles Champlin Kurt Aland Carl-Erik Holmberg Klaus Clusius Countess Maria Louise Albertine of Leiningen-Falkenburg-Dagsburg José Vianna da Motta Georg Krause Hertha Feist Walter Gross Gerhard I, Count of Holstein-Itzehoe Adam, Count of Schwarzenberg William Scott Karl Witzell Heinz Bauer Nochum Shtif Angelo Ferrari Ron Jeffery Detlef Gromoll Sargon Boulus George II of Brieg Ottfried Neubecker Georg Hansen Adolf Brand August Neithardt John, Duke of Münsterberg-Oels Walter Bockmayer Helma Sanders-Brahms Harry Frank
Klaus Clusius, Felix Mendelssohn Bartholdy and Henry Eyring have Berlin as place of burial
Klaus Clusius Felix Mendelssohn Bartholdy Henry Eyring
action filter_type
action find_reverse
entity Berlin
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Berlin']
SELECT DISTINCT ?a WHERE { ?a property:place_of_burial resource:Berlin . ?a rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q574810
P551
Q56061
USER
What was the place of residence of that person ?
(Q574810,P551,c(Q56061))
action filter_type
action find
entity Q574810
relation P551
type Q56061
['Q574810', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q574810 property:P551 ?a . ?a rdf:type ontology:Q56061 }
Henry Eyring
action filter_type
action find
entity Henry Eyring
relation residence
type administrative territorial entity
['Henry Eyring', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Henry_Eyring property:residence ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q104985
SYSTEM
Did you mean Klaus Clusius ?
Q104985 Q46096 Q574810
(Q104985,P551,c(Q56061)) (Q46096,P551,c(Q56061)) (Q574810,P551,c(Q56061))
[ANSWER]
['Q104985', 'P551', {'concept': 'Q56061'}] ['Q46096', 'P551', {'concept': 'Q56061'}] ['Q574810', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q574810 property:P551 ?a . ?a rdf:type ontology:Q56061 }
Klaus Clusius Felix Mendelssohn Bartholdy Henry Eyring
Did you mean Klaus Clusius ?
Klaus Clusius
['Klaus Clusius', 'residence', {'concept': 'administrative territorial entity'}] ['Felix Mendelssohn Bartholdy', 'residence', {'concept': 'administrative territorial entity'}] ['Henry Eyring', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Henry_Eyring property:residence ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Henry Eyring. Could you tell me the answer for that?
(Q574810,P551,c(Q56061))
Q574810
['Q574810', 'P551', {'concept': 'Q56061'}]
['Henry Eyring', 'residence', {'concept': 'administrative territorial entity'}]
[]
Q16562
SYSTEM
El Paso
Q16562
(Q574810,P551,c(Q56061))
action filter_type
action find
entity Q574810
relation P551
type Q56061
The place of residence of that person was in [ANSWER]
['Q574810', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q574810 property:P551 ?a . ?a rdf:type ontology:Q56061 }
El Paso
The place of residence of that person was in El Paso
El Paso
action filter_type
action find
entity Henry Eyring
relation residence
type administrative territorial entity
['Henry Eyring', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Henry_Eyring property:residence ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q16562 Q359061
P19
Q502895
USER
Was Mitch Hewer born at that administrative territory ?
(Q359061,P19,Q16562)
action is_in
entity Q359061
action find
entity Q16562
relation P19
['Q359061', 'P19', 'Q16562']
ASK WHERE { resource:Q16562 property:P19 resource:Q359061 }
El Paso Mitch Hewer
action is_in
entity Mitch Hewer
action find
entity El Paso
relation place of birth
['Mitch Hewer', 'place of birth', 'El Paso']
ASK WHERE { resource:El_Paso property:place_of_birth resource:Mitch_Hewer }
[]
common name
SYSTEM
NO
(Q359061,P19,Q16562)
action is_in
entity Q359061
action find
entity Q16562
relation P19
[ANSWER]
['Q359061', 'P19', 'Q16562']
ASK WHERE { resource:Q16562 property:P19 resource:Q359061 }
No
action is_in
entity Mitch Hewer
action find
entity El Paso
relation place of birth
['Mitch Hewer', 'place of birth', 'El Paso']
ASK WHERE { resource:El_Paso property:place_of_birth resource:Mitch_Hewer }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q586 Q17088893
P1376
Q1048835
USER
Does Sta. Clara, Santo Tomas, Batangas have Bonn as its capital ?
(Q586,P1376,Q17088893)
action is_in
entity Q17088893
action find
entity Q586
relation P1376
['Q586', 'P1376', 'Q17088893']
ASK WHERE { resource:Q586 property:P1376 resource:Q17088893 }
Bonn Sta. Clara, Santo Tomas, Batangas
action is_in
entity Sta. Clara, Santo Tomas, Batangas
action find
entity Bonn
relation capital of
['Bonn', 'capital of', 'Sta. Clara, Santo Tomas, Batangas']
ASK WHERE { resource:Bonn property:capital_of resource:Sta._Clara,_Santo_Tomas,_Batangas }
[]
political territorial entity
SYSTEM
NO
(Q586,P1376,Q17088893)
action is_in
entity Q17088893
action find
entity Q586
relation P1376
[ANSWER]
['Q586', 'P1376', 'Q17088893']
ASK WHERE { resource:Q586 property:P1376 resource:Q17088893 }
No
action is_in
entity Sta. Clara, Santo Tomas, Batangas
action find
entity Bonn
relation capital of
['Bonn', 'capital of', 'Sta. Clara, Santo Tomas, Batangas']
ASK WHERE { resource:Bonn property:capital_of resource:Sta._Clara,_Santo_Tomas,_Batangas }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q473527 Q64 Q12666258
P1027
Q56061
USER
Is Order of Merit of Berlin conferred by Berlin and Nairiai ?
(Q473527,P1027,Q64) (Q473527,P1027,Q12666258)
action is_in
entity Q473527
action intersection
action find_reverse
entity Q64
relation P1027
action find_reverse
entity Q12666258
relation P1027
['Q473527', 'P1027', 'Q64'] ['Q473527', 'P1027', 'Q12666258']
ASK WHERE { resource:Q473527 property:P1027 resource:Q64 . resource:Q473527 property:P1027 resource:Q12666258 }
Order of Merit of Berlin Berlin Nairiai
action is_in
entity Order of Merit of Berlin
action intersection
action find_reverse
entity Berlin
relation conferred by
action find_reverse
entity Nairiai
relation conferred by
['Order of Merit of Berlin', 'conferred by', 'Berlin'] ['Order of Merit of Berlin', 'conferred by', 'Nairiai']
ASK WHERE { resource:Order_of_Merit_of_Berlin property:conferred_by resource:Berlin . resource:Order_of_Merit_of_Berlin property:conferred_by resource:Nairiai }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q473527,P1027,Q64) (Q473527,P1027,Q12666258)
action is_in
entity Q473527
action intersection
action find_reverse
entity Q64
relation P1027
action find_reverse
entity Q12666258
relation P1027
[ANSWER]
['Q473527', 'P1027', 'Q64'] ['Q473527', 'P1027', 'Q12666258']
ASK WHERE { resource:Q473527 property:P1027 resource:Q64 . resource:Q473527 property:P1027 resource:Q12666258 }
YES and NO respectively
action is_in
entity Order of Merit of Berlin
action intersection
action find_reverse
entity Berlin
relation conferred by
action find_reverse
entity Nairiai
relation conferred by
['Order of Merit of Berlin', 'conferred by', 'Berlin'] ['Order of Merit of Berlin', 'conferred by', 'Nairiai']
ASK WHERE { resource:Order_of_Merit_of_Berlin property:conferred_by resource:Berlin . resource:Order_of_Merit_of_Berlin property:conferred_by resource:Nairiai }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q16854668
P532
Q56061 Q2235308
USER
How many ship types have greater number of administrative territories as their base harbour than Mein Schiff 4 ?
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q16854668
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?e ) WHERE { ?n property:P532 ?h . ?n rdf:type ontology:Q2235308 . ?h rdf:type ontology:Q56061 } GROUP BY ?n } . FILTER ( ?e > ?q ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { resource:Q16854668 property:P532 ?k . ?k rdf:type ontology:Q2235308 } } }
Mein Schiff 4
action count
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Mein Schiff 4
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?e ) WHERE { ?n property:port_of_registry ?h . ?n rdf:type ontology:ship_type . ?h rdf:type ontology:administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?e > ?q ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { resource:Mein_Schiff_4 property:port_of_registry ?k . ?k rdf:type ontology:ship_type } } }
[]
administrative territorial entity ship type
SYSTEM
5
Q11707059 Q33209 Q1514518 Q2596850 Q468026
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q16854668
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?e ) WHERE { ?n property:P532 ?h . ?n rdf:type ontology:Q2235308 . ?h rdf:type ontology:Q56061 } GROUP BY ?n } . FILTER ( ?e > ?q ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { resource:Q16854668 property:P532 ?k . ?k rdf:type ontology:Q2235308 } } }
MS Arrow Mary Celeste Sapphire Princess MS Azura SS Maxim Gorkiy
5
action count
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Mein Schiff 4
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?e ) WHERE { ?n property:port_of_registry ?h . ?n rdf:type ontology:ship_type . ?h rdf:type ontology:administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?e > ?q ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { resource:Mein_Schiff_4 property:port_of_registry ?k . ?k rdf:type ontology:ship_type } } }
[]