Simple Question (Direct)
Simple Question
Q6764798
P19
Q15617994
USER
Which administrative territory is the birthplace of Mario Medda ?
(Q6764798,P19,c(Q15617994))
action filter_type
action find
entity Q6764798
relation P19
type Q15617994
['Q6764798', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q6764798 property:P19 ?a . ?a rdf:type ontology:Q15617994 }
Mario Medda
action filter_type
action find
entity Mario Medda
relation place of birth
type designation for an administrative territorial entity
['Mario Medda', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Mario_Medda property:place_of_birth ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q286671
SYSTEM
Santadi
Q286671
(Q6764798,P19,c(Q15617994))
action filter_type
action find
entity Q6764798
relation P19
type Q15617994
[ANSWER] is the birthplace of Mario Medda
['Q6764798', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q6764798 property:P19 ?a . ?a rdf:type ontology:Q15617994 }
Santadi
Santadi is the birthplace of Mario Medda
Santadi
action filter_type
action find
entity Mario Medda
relation place of birth
type designation for an administrative territorial entity
['Mario Medda', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Mario_Medda property:place_of_birth ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6764798
P106
Q12737077
USER
What is the profession of that person ?
(Q286671,P106,c(Q12737077))
action filter_type
action find
entity Q6764798
relation P106
type Q12737077
['Q286671', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q6764798 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Mario Medda
action filter_type
action find
entity Mario Medda
relation occupation
type occupation
['Santadi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Mario_Medda property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q15972912
SYSTEM
modern pentathlete
Q15972912
(Q286671,P106,c(Q12737077))
action filter_type
action find
entity Q6764798
relation P106
type Q12737077
The profession of that person is a [ANSWER]
['Q286671', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q6764798 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
modern pentathlete
The profession of that person is a modern pentathlete
modern pentathlete
action filter_type
action find
entity Mario Medda
relation occupation
type occupation
['Santadi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Mario_Medda property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q20020764 Q12560
P26
Q502895
USER
How many people are married to Diane Noomin or Ottoman Empire ?
(c(Q502895),P26,Q20020764) (c(Q502895),P26,Q12560)
action count
action union
action filter_type
action find_reverse
entity Q20020764
relation P26
type Q502895
action filter_type
action find_reverse
entity Q12560
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q20020764'] [{'concept': 'Q502895'}, 'P26', 'Q12560']
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { VALUES ( ?e ) { ( resource:Q12560 ) ( resource:Q20020764 ) } . ?u property:P26 ?e }
Diane Noomin Ottoman Empire
action count
action union
action filter_type
action find_reverse
entity Diane Noomin
relation spouse
type common name
action filter_type
action find_reverse
entity Ottoman Empire
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Diane Noomin'] [{'concept': 'common name'}, 'spouse', 'Ottoman Empire']
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { VALUES ( ?e ) { ( resource:Ottoman_Empire ) ( resource:Diane_Noomin ) } . ?u property:spouse ?e }
[]
common name
SYSTEM
2
Q862146 Q18579577
(c(Q502895),P26,Q20020764) (c(Q502895),P26,Q12560)
action count
action union
action filter_type
action find_reverse
entity Q20020764
relation P26
type Q502895
action filter_type
action find_reverse
entity Q12560
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q20020764'] [{'concept': 'Q502895'}, 'P26', 'Q12560']
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { VALUES ( ?e ) { ( resource:Q12560 ) ( resource:Q20020764 ) } . ?u property:P26 ?e }
Bill Griffith Nükhet-Sedâ Hanım Efendi
2
action count
action union
action filter_type
action find_reverse
entity Diane Noomin
relation spouse
type common name
action filter_type
action find_reverse
entity Ottoman Empire
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Diane Noomin'] [{'concept': 'common name'}, 'spouse', 'Ottoman Empire']
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { VALUES ( ?e ) { ( resource:Ottoman_Empire ) ( resource:Diane_Noomin ) } . ?u property:spouse ?e }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q20888837
P608
Q2668072 Q1656682 Q502895
USER
How many people were displayed at more number of collections or events than Angélique Bègue ?
(c(Q502895),P608,c(Q2668072)|c(Q1656682))
action count
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q2668072
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action count
action filter_multi_types
action find
entity Q20888837
relation P608
type Q2668072
type Q1656682
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q2668072'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?x ) WHERE { VALUES ( ?w ) { ( ontology:Q1656682 ) ( ontology:Q2668072 ) } . ?m rdf:type ?w } GROUP BY ?k } . FILTER ( ?x > ?r ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q20888837 property:P608 ?q . { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:Q1656682 ) ( ontology:Q2668072 ) } } } } }
Angélique Bègue
action count
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type collection
action find_tuple_counts
relation exhibition history
type common name
type event
action count
action filter_multi_types
action find
entity Angélique Bègue
relation exhibition history
type collection
type event
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'collection'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?x ) WHERE { VALUES ( ?w ) { ( ontology:event ) ( ontology:collection ) } . ?m rdf:type ?w } GROUP BY ?k } . FILTER ( ?x > ?r ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Angélique_Bègue property:exhibition_history ?q . { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:event ) ( ontology:collection ) } } } } }
[]
collection event common name
SYSTEM
2
Q1964408 Q15527965
(c(Q502895),P608,c(Q2668072)|c(Q1656682))
action count
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q2668072
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action count
action filter_multi_types
action find
entity Q20888837
relation P608
type Q2668072
type Q1656682
[ANSWER]
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q2668072'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?x ) WHERE { VALUES ( ?w ) { ( ontology:Q1656682 ) ( ontology:Q2668072 ) } . ?m rdf:type ?w } GROUP BY ?k } . FILTER ( ?x > ?r ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q20888837 property:P608 ?q . { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:Q1656682 ) ( ontology:Q2668072 ) } } } } }
Nan Hoover Margaretha Roosenboom
2
action count
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type collection
action find_tuple_counts
relation exhibition history
type common name
type event
action count
action filter_multi_types
action find
entity Angélique Bègue
relation exhibition history
type collection
type event
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'collection'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?x ) WHERE { VALUES ( ?w ) { ( ontology:event ) ( ontology:collection ) } . ?m rdf:type ?w } GROUP BY ?k } . FILTER ( ?x > ?r ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Angélique_Bègue property:exhibition_history ?q . { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:event ) ( ontology:collection ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q5040332
P608
Q2668072 Q1656682 Q502895
USER
And how about Carl Holty?
(c(Q502895),P608,c(Q2668072)|c(Q1656682))
action count
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q2668072
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action count
action filter_multi_types
action find
entity Q5040332
relation P608
type Q2668072
type Q1656682
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q2668072'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?s ) WHERE { { ?y property:P608 ?g . ?y rdf:type ontology:Q502895 . ?g rdf:type ontology:Q1656682 } UNION { ?y property:P608 ?g . ?y rdf:type ontology:Q502895 . ?g rdf:type ontology:Q2668072 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { resource:Q5040332 property:P608 ?i . { { ?i rdf:type ontology:Q2668072 } UNION { ?i rdf:type ontology:Q1656682 } } } } . FILTER ( ?s > ?p ) }
Carl Holty
action count
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type collection
action find_tuple_counts
relation exhibition history
type common name
type event
action count
action filter_multi_types
action find
entity Carl Holty
relation exhibition history
type collection
type event
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'collection'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?s ) WHERE { { ?y property:exhibition_history ?g . ?y rdf:type ontology:common_name . ?g rdf:type ontology:event } UNION { ?y property:exhibition_history ?g . ?y rdf:type ontology:common_name . ?g rdf:type ontology:collection } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { resource:Carl_Holty property:exhibition_history ?i . { { ?i rdf:type ontology:collection } UNION { ?i rdf:type ontology:event } } } } . FILTER ( ?s > ?p ) }
[]
collection event common name
SYSTEM
20
Q17314881 Q17455385 Q15734263 Q15734265 Q15991813 Q16062545 Q5671224 Q17625628 Q5248733 Q2824894 Q1964408 Q3289592 Q20888837 Q22815085 Q9015308 Q805807 Q16080418 Q15527965 Q15873898 Q3335569
(c(Q502895),P608,c(Q2668072)|c(Q1656682))
action count
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q2668072
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action count
action filter_multi_types
action find
entity Q5040332
relation P608
type Q2668072
type Q1656682
[ANSWER]
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q2668072'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?s ) WHERE { { ?y property:P608 ?g . ?y rdf:type ontology:Q502895 . ?g rdf:type ontology:Q1656682 } UNION { ?y property:P608 ?g . ?y rdf:type ontology:Q502895 . ?g rdf:type ontology:Q2668072 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { resource:Q5040332 property:P608 ?i . { { ?i rdf:type ontology:Q2668072 } UNION { ?i rdf:type ontology:Q1656682 } } } } . FILTER ( ?s > ?p ) }
René Izaure Jerry Cooke Johanna Bleuland van Oordt Adri Bleuland van Oordt Judie Bamber Alice Havers Pablo Borges Delgado Deborah De Robertis Manuel Ocampo Adolphe Péterelle Nan Hoover Moniek Toebosch Angélique Bègue Georges Violet Juan Carlos Alom Balto Alyce Frank Margaretha Roosenboom Chrisje van der Willigen Nancy Elizabeth Prophet
20
action count
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type collection
action find_tuple_counts
relation exhibition history
type common name
type event
action count
action filter_multi_types
action find
entity Carl Holty
relation exhibition history
type collection
type event
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'collection'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?s ) WHERE { { ?y property:exhibition_history ?g . ?y rdf:type ontology:common_name . ?g rdf:type ontology:event } UNION { ?y property:exhibition_history ?g . ?y rdf:type ontology:common_name . ?g rdf:type ontology:collection } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { resource:Carl_Holty property:exhibition_history ?i . { { ?i rdf:type ontology:collection } UNION { ?i rdf:type ontology:event } } } } . FILTER ( ?s > ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q5275507
P706
Q553036 Q107425 Q15617994
USER
How many administrative territories are located in greater number of natural region of Germanys and landscapes than Digaleto ?
(c(Q15617994),P706,c(Q553036)|c(Q107425))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q553036
action find_tuple_counts
relation P706
type Q15617994
type Q107425
action count
action filter_multi_types
action find
entity Q5275507
relation P706
type Q553036
type Q107425
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q553036'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?l ) WHERE { { ?c rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q553036 . ?c property:P706 ?k } UNION { ?c property:P706 ?k . ?c rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q107425 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:Q553036 ) ( ontology:Q107425 ) } } . resource:Q5275507 property:P706 ?s } } . FILTER ( ?l > ?v ) }
Digaleto
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type natural region of Germany
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type landscape
action count
action filter_multi_types
action find
entity Digaleto
relation located on terrain feature
type natural region of Germany
type landscape
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'natural region of Germany'}, {'concept': 'landscape'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?l ) WHERE { { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:natural_region_of_Germany . ?c property:located_on_terrain_feature ?k } UNION { ?c property:located_on_terrain_feature ?k . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:landscape } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:natural_region_of_Germany ) ( ontology:landscape ) } } . resource:Digaleto property:located_on_terrain_feature ?s } } . FILTER ( ?l > ?v ) }
[]
natural region of Germany landscape designation for an administrative territorial entity
SYSTEM
4
Q489215 Q145 Q628095 Q522992
(c(Q15617994),P706,c(Q553036)|c(Q107425))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q553036
action find_tuple_counts
relation P706
type Q15617994
type Q107425
action count
action filter_multi_types
action find
entity Q5275507
relation P706
type Q553036
type Q107425
[ANSWER]
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q553036'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?l ) WHERE { { ?c rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q553036 . ?c property:P706 ?k } UNION { ?c property:P706 ?k . ?c rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q107425 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:Q553036 ) ( ontology:Q107425 ) } } . resource:Q5275507 property:P706 ?s } } . FILTER ( ?l > ?v ) }
Oberhof United Kingdom Nürburg Braunlage
4
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type natural region of Germany
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type landscape
action count
action filter_multi_types
action find
entity Digaleto
relation located on terrain feature
type natural region of Germany
type landscape
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'natural region of Germany'}, {'concept': 'landscape'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?l ) WHERE { { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:natural_region_of_Germany . ?c property:located_on_terrain_feature ?k } UNION { ?c property:located_on_terrain_feature ?k . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:landscape } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:natural_region_of_Germany ) ( ontology:landscape ) } } . resource:Digaleto property:located_on_terrain_feature ?s } } . FILTER ( ?l > ?v ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q14892
P706
Q553036 Q107425 Q15617994
USER
And what about Buchholz in der Nordheide?
(c(Q15617994),P706,c(Q553036)|c(Q107425))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q553036
action find_tuple_counts
relation P706
type Q15617994
type Q107425
action count
action filter_multi_types
action find
entity Q14892
relation P706
type Q553036
type Q107425
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q553036'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?s ) WHERE { { ?n property:P706 ?d . ?n rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q553036 } UNION { ?n property:P706 ?d . ?n rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q107425 } } GROUP BY ?n } . FILTER ( ?s > ?r ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { resource:Q14892 property:P706 ?j . { { ?j rdf:type ontology:Q107425 } UNION { ?j rdf:type ontology:Q553036 } } } } }
Buchholz in der Nordheide
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type natural region of Germany
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type landscape
action count
action filter_multi_types
action find
entity Buchholz in der Nordheide
relation located on terrain feature
type natural region of Germany
type landscape
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'natural region of Germany'}, {'concept': 'landscape'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?s ) WHERE { { ?n property:located_on_terrain_feature ?d . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:natural_region_of_Germany } UNION { ?n property:located_on_terrain_feature ?d . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:landscape } } GROUP BY ?n } . FILTER ( ?s > ?r ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { resource:Buchholz_in_der_Nordheide property:located_on_terrain_feature ?j . { { ?j rdf:type ontology:landscape } UNION { ?j rdf:type ontology:natural_region_of_Germany } } } } }
[]
natural region of Germany landscape designation for an administrative territorial entity
SYSTEM
4
Q489215 Q145 Q628095 Q522992
(c(Q15617994),P706,c(Q553036)|c(Q107425))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q553036
action find_tuple_counts
relation P706
type Q15617994
type Q107425
action count
action filter_multi_types
action find
entity Q14892
relation P706
type Q553036
type Q107425
[ANSWER]
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q553036'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?s ) WHERE { { ?n property:P706 ?d . ?n rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q553036 } UNION { ?n property:P706 ?d . ?n rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q107425 } } GROUP BY ?n } . FILTER ( ?s > ?r ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { resource:Q14892 property:P706 ?j . { { ?j rdf:type ontology:Q107425 } UNION { ?j rdf:type ontology:Q553036 } } } } }
Oberhof United Kingdom Nürburg Braunlage
4
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type natural region of Germany
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type landscape
action count
action filter_multi_types
action find
entity Buchholz in der Nordheide
relation located on terrain feature
type natural region of Germany
type landscape
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'natural region of Germany'}, {'concept': 'landscape'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?s ) WHERE { { ?n property:located_on_terrain_feature ?d . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:natural_region_of_Germany } UNION { ?n property:located_on_terrain_feature ?d . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:landscape } } GROUP BY ?n } . FILTER ( ?s > ?r ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { resource:Buchholz_in_der_Nordheide property:located_on_terrain_feature ?j . { { ?j rdf:type ontology:landscape } UNION { ?j rdf:type ontology:natural_region_of_Germany } } } } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q2793400 Q14892
P19 P735
Q502895
USER
Which people were born at Buchholz in der Nordheide and do not have name of Peter ?
AND((c(Q502895),P19,Q14892), NOT((c(Q502895),P735,Q2793400)))
action filter_type
action difference
action find_reverse
entity Q14892
relation P19
action find_reverse
entity Q2793400
relation P735
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q14892'], {'NOT': [[{'concept': 'Q502895'}, 'P735', 'Q2793400']]}]}
SELECT DISTINCT ?f WHERE { ?f property:P19 resource:Q14892 . FILTER NOT EXISTS { ?f property:P735 resource:Q2793400 } . ?f rdf:type ontology:Q502895 }
Peter Buchholz in der Nordheide
action filter_type
action difference
action find_reverse
entity Buchholz in der Nordheide
relation place of birth
action find_reverse
entity Peter
relation given name
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Buchholz in der Nordheide'], {'NOT': [[{'concept': 'common name'}, 'given name', 'Peter']]}]}
SELECT DISTINCT ?f WHERE { ?f property:place_of_birth resource:Buchholz_in_der_Nordheide . FILTER NOT EXISTS { ?f property:given_name resource:Peter } . ?f rdf:type ontology:common_name }
[]
common name
Q106455 Q18221537 Q95536 Q23794172 Q276731 Q2568195 Q692819 Q1220298 Q90403 Q18808219
SYSTEM
Some of them are Alexander Granzow, Karin Buchholz, Matthias Wolfes, Alicia Melina, Alexander Meier, Wiebke Frost, Arne Stephan, Diedrich Hinrichs, Nikias Arndt, Dennis Ehrhardt
Q23836180 Q1220298 Q90403 Q1338100 Q23794172 Q18808219 Q1162907 Q567130 Q18221537 Q1747494 Q1699589 Q276731 Q106455 Q2568195 Q2220975 Q1309773 Q1521205 Q95536 Q692819
AND((c(Q502895),P19,Q14892), NOT((c(Q502895),P735,Q2793400)))
action filter_type
action difference
action find_reverse
entity Q14892
relation P19
action find_reverse
entity Q2793400
relation P735
type Q502895
[ANSWERS] were born at Buchholz in der Nordheide and do not have name of Peter
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q14892'], {'NOT': [[{'concept': 'Q502895'}, 'P735', 'Q2793400']]}]}
SELECT DISTINCT ?f WHERE { ?f property:P19 resource:Q14892 . FILTER NOT EXISTS { ?f property:P735 resource:Q2793400 } . ?f rdf:type ontology:Q502895 }
Michael Spierig Diedrich Hinrichs Nikias Arndt Emma Stach Alicia Melina Dennis Ehrhardt Daniel Thieben Annika Martens Karin Buchholz Sven Böttcher Julia Seeliger Alexander Meier Alexander Granzow Wiebke Frost Sandra Corzilius Karl-Christian König Nils Schwarzenberg Matthias Wolfes Arne Stephan
Alexander Granzow, Karin Buchholz, Matthias Wolfes, Alicia Melina, Alexander Meier, Wiebke Frost, Arne Stephan, Diedrich Hinrichs, Nikias Arndt and Dennis Ehrhardt were born at Buchholz in der Nordheide and do not have name of Peter
Alexander Granzow Karin Buchholz Matthias Wolfes Alicia Melina Alexander Meier Wiebke Frost Arne Stephan Diedrich Hinrichs Nikias Arndt Dennis Ehrhardt
action filter_type
action difference
action find_reverse
entity Buchholz in der Nordheide
relation place of birth
action find_reverse
entity Peter
relation given name
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Buchholz in der Nordheide'], {'NOT': [[{'concept': 'common name'}, 'given name', 'Peter']]}]}
SELECT DISTINCT ?f WHERE { ?f property:place_of_birth resource:Buchholz_in_der_Nordheide . FILTER NOT EXISTS { ?f property:given_name resource:Peter } . ?f rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11857180
Q56061
USER
And what about Eino Raunio?
(Q11857180,P937,c(Q56061))
action filter_type
action find
entity Q11857180
relation P937
type Q56061
['Q11857180', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q11857180 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Eino Raunio
action filter_type
action find
entity Eino Raunio
relation work location
type administrative territorial entity
['Eino Raunio', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Eino_Raunio property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1757
SYSTEM
Helsinki
Q1757
(Q11857180,P937,c(Q56061))
action filter_type
action find
entity Q11857180
relation P937
type Q56061
[ANSWER]
['Q11857180', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q11857180 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Helsinki
Helsinki
action filter_type
action find
entity Eino Raunio
relation work location
type administrative territorial entity
['Eino Raunio', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Eino_Raunio property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1376
Q7275 Q15617994
USER
How many states and administrative territories have that administrative territory as their county seat ?
(Q1757,P1376,c(Q7275)) (Q1757,P1376,c(Q15617994)) (Q1757,P1376,c(Q7275)) (Q1757,P1376,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1757
relation P1376
type Q7275
action filter_type
action find
entity Q1757
relation P1376
type Q15617994
['Q1757', 'P1376', {'concept': 'Q7275'}] ['Q1757', 'P1376', {'concept': 'Q15617994'}] ['Q1757', 'P1376', {'concept': 'Q7275'}] ['Q1757', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { VALUES ( ?g ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } . ?e rdf:type ?g }
action count
action union
action filter_type
action find
entity Helsinki
relation capital of
type state
action filter_type
action find
entity Helsinki
relation capital of
type designation for an administrative territorial entity
['Helsinki', 'capital of', {'concept': 'state'}] ['Helsinki', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Helsinki', 'capital of', {'concept': 'state'}] ['Helsinki', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { VALUES ( ?g ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?e rdf:type ?g }
[]
state designation for an administrative territorial entity
SYSTEM
2 states and 1 administrative territories
Q33 Q62519 Q1811029
(Q1757,P1376,c(Q7275)) (Q1757,P1376,c(Q15617994)) (Q1757,P1376,c(Q7275)) (Q1757,P1376,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1757
relation P1376
type Q7275
action filter_type
action find
entity Q1757
relation P1376
type Q15617994
[ANSWER]
['Q1757', 'P1376', {'concept': 'Q7275'}] ['Q1757', 'P1376', {'concept': 'Q15617994'}] ['Q1757', 'P1376', {'concept': 'Q7275'}] ['Q1757', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { VALUES ( ?g ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } . ?e rdf:type ?g }
Finland Finnish Democratic Republic Finnish Socialist Workers' Republic
2 states and 1 administrative territories
action count
action union
action filter_type
action find
entity Helsinki
relation capital of
type state
action filter_type
action find
entity Helsinki
relation capital of
type designation for an administrative territorial entity
['Helsinki', 'capital of', {'concept': 'state'}] ['Helsinki', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Helsinki', 'capital of', {'concept': 'state'}] ['Helsinki', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { VALUES ( ?g ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?e rdf:type ?g }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q142 Q12560
P27
Q502895
USER
Which people are a native of Ottoman Empire and France ?
AND((c(Q502895),P27,Q12560), (c(Q502895),P27,Q142))
action filter_type
action intersection
action find_reverse
entity Q12560
relation P27
action find_reverse
entity Q142
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q12560'], [{'concept': 'Q502895'}, 'P27', 'Q142']]}
SELECT DISTINCT ?p WHERE { ?p property:P27 resource:Q142 . ?p property:P27 resource:Q12560 . ?p rdf:type ontology:Q502895 }
France Ottoman Empire
action filter_type
action intersection
action find_reverse
entity Ottoman Empire
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Ottoman Empire'], [{'concept': 'common name'}, 'country of citizenship', 'France']]}
SELECT DISTINCT ?p WHERE { ?p property:country_of_citizenship resource:France . ?p property:country_of_citizenship resource:Ottoman_Empire . ?p rdf:type ontology:common_name }
[]
common name
Q283026 Q284244 Q745216 Q1399240
SYSTEM
Basil Zaharoff, Marius Michel Pasha, Soliman Pasha, Michel Loève
Q283026 Q284244 Q745216 Q1399240
AND((c(Q502895),P27,Q12560), (c(Q502895),P27,Q142))
action filter_type
action intersection
action find_reverse
entity Q12560
relation P27
action find_reverse
entity Q142
relation P27
type Q502895
[ANSWERS] are a native of Ottoman Empire and France
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q12560'], [{'concept': 'Q502895'}, 'P27', 'Q142']]}
SELECT DISTINCT ?p WHERE { ?p property:P27 resource:Q142 . ?p property:P27 resource:Q12560 . ?p rdf:type ontology:Q502895 }
Basil Zaharoff Marius Michel Pasha Soliman Pasha Michel Loève
Basil Zaharoff, Marius Michel Pasha, Soliman Pasha and Michel Loève are a native of Ottoman Empire and France
Basil Zaharoff Marius Michel Pasha Soliman Pasha Michel Loève
action filter_type
action intersection
action find_reverse
entity Ottoman Empire
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Ottoman Empire'], [{'concept': 'common name'}, 'country of citizenship', 'France']]}
SELECT DISTINCT ?p WHERE { ?p property:country_of_citizenship resource:France . ?p property:country_of_citizenship resource:Ottoman_Empire . ?p rdf:type ontology:common_name }
[]