Simple Question (Direct)
Simple Question
Q8857155
P344
Q502895
USER
Who is appointed as the cinematographer of Trilby ?
(Q8857155,P344,c(Q502895))
action filter_type
action find
entity Q8857155
relation P344
type Q502895
['Q8857155', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q8857155 property:P344 ?h . ?h rdf:type ontology:Q502895 }
Trilby
action filter_type
action find
entity Trilby
relation director of photography
type common name
['Trilby', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Trilby property:director_of_photography ?h . ?h rdf:type ontology:common_name }
[]
common name
Q3102268
SYSTEM
Georges Benoît
Q3102268
(Q8857155,P344,c(Q502895))
action filter_type
action find
entity Q8857155
relation P344
type Q502895
[ANSWER] is appointed as the cinematographer of Trilby
['Q8857155', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q8857155 property:P344 ?h . ?h rdf:type ontology:Q502895 }
Georges Benoît
Georges Benoît is appointed as the cinematographer of Trilby
Georges Benoît
action filter_type
action find
entity Trilby
relation director of photography
type common name
['Trilby', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Trilby property:director_of_photography ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3102268
P734
Q82799
USER
Which name is associated with that person ?
(Q3102268,P734,c(Q82799))
action filter_type
action find
entity Q3102268
relation P734
type Q82799
['Q3102268', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q3102268 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Georges Benoît
action filter_type
action find
entity Georges Benoît
relation family name
type name
['Georges Benoît', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Georges_Benoît property:family_name ?z . ?z rdf:type ontology:name }
[]
name
Q26225403
SYSTEM
Benoît
Q26225403
(Q3102268,P734,c(Q82799))
action filter_type
action find
entity Q3102268
relation P734
type Q82799
[ANSWER] is associated with that person
['Q3102268', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q3102268 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Benoît
Benoît is associated with that person
Benoît
action filter_type
action find
entity Georges Benoît
relation family name
type name
['Georges Benoît', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Georges_Benoît property:family_name ?z . ?z rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6790779
Q82799
USER
And also tell me about Matthew Keller?
(Q6790779,P734,c(Q82799))
action filter_type
action find
entity Q6790779
relation P734
type Q82799
['Q6790779', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q6790779 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Matthew Keller
action filter_type
action find
entity Matthew Keller
relation family name
type name
['Matthew Keller', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Matthew_Keller property:family_name ?h . ?h rdf:type ontology:name }
[]
name
Q1738213
SYSTEM
Keller
Q1738213
(Q6790779,P734,c(Q82799))
action filter_type
action find
entity Q6790779
relation P734
type Q82799
[ANSWER]
['Q6790779', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q6790779 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Keller
Keller
action filter_type
action find
entity Matthew Keller
relation family name
type name
['Matthew Keller', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Matthew_Keller property:family_name ?h . ?h rdf:type ontology:name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q714189
P138
Q486972 Q15617994 Q82799
USER
How many names have greater number of human settlements or administrative territories as their namesake than Duce ?
(c(Q82799),P138,c(Q486972)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q486972
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action count
action filter_multi_types
action find
entity Q714189
relation P138
type Q486972
type Q15617994
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?s WHERE { { ?s property:P138 ?d . ?s rdf:type ontology:Q82799 . ?d rdf:type ontology:Q486972 } UNION { ?s rdf:type ontology:Q82799 . ?d rdf:type ontology:Q15617994 . ?s property:P138 ?d } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Q714189 property:P138 ?x . { { ?x rdf:type ontology:Q486972 } UNION { ?x rdf:type ontology:Q15617994 } } } } . FILTER ( ?e > ?a ) }
Duce
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type human settlement
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Duce
relation named after
type human settlement
type designation for an administrative territorial entity
[{'concept': 'name'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?s WHERE { { ?s property:named_after ?d . ?s rdf:type ontology:name . ?d rdf:type ontology:human_settlement } UNION { ?s rdf:type ontology:name . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:named_after ?d } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Duce property:named_after ?x . { { ?x rdf:type ontology:human_settlement } UNION { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?e > ?a ) }
[]
human settlement designation for an administrative territorial entity name
SYSTEM
2
Q27022433 Q24229341
(c(Q82799),P138,c(Q486972)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q486972
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action count
action filter_multi_types
action find
entity Q714189
relation P138
type Q486972
type Q15617994
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?s WHERE { { ?s property:P138 ?d . ?s rdf:type ontology:Q82799 . ?d rdf:type ontology:Q486972 } UNION { ?s rdf:type ontology:Q82799 . ?d rdf:type ontology:Q15617994 . ?s property:P138 ?d } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Q714189 property:P138 ?x . { { ?x rdf:type ontology:Q486972 } UNION { ?x rdf:type ontology:Q15617994 } } } } . FILTER ( ?e > ?a ) }
Danziger Toscano
2
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type human settlement
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Duce
relation named after
type human settlement
type designation for an administrative territorial entity
[{'concept': 'name'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?s WHERE { { ?s property:named_after ?d . ?s rdf:type ontology:name . ?d rdf:type ontology:human_settlement } UNION { ?s rdf:type ontology:name . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:named_after ?d } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Duce property:named_after ?x . { { ?x rdf:type ontology:human_settlement } UNION { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?e > ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q25303577
P138
Q486972 Q15617994 Q82799
USER
And also tell me about Vallon?
(c(Q82799),P138,c(Q486972)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q486972
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action count
action filter_multi_types
action find
entity Q25303577
relation P138
type Q486972
type Q15617994
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?y ) WHERE { { ?n property:P138 ?o . ?n rdf:type ontology:Q82799 . ?o rdf:type ontology:Q486972 } UNION { ?n property:P138 ?o . ?n rdf:type ontology:Q82799 . ?o rdf:type ontology:Q15617994 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { resource:Q25303577 property:P138 ?q . { { ?q rdf:type ontology:Q486972 } UNION { ?q rdf:type ontology:Q15617994 } } } } . FILTER ( ?y > ?t ) }
Vallon
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type human settlement
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Vallon
relation named after
type human settlement
type designation for an administrative territorial entity
[{'concept': 'name'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?y ) WHERE { { ?n property:named_after ?o . ?n rdf:type ontology:name . ?o rdf:type ontology:human_settlement } UNION { ?n property:named_after ?o . ?n rdf:type ontology:name . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { resource:Vallon property:named_after ?q . { { ?q rdf:type ontology:human_settlement } UNION { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?y > ?t ) }
[]
human settlement designation for an administrative territorial entity name
SYSTEM
2
Q27022433 Q24229341
(c(Q82799),P138,c(Q486972)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q486972
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action count
action filter_multi_types
action find
entity Q25303577
relation P138
type Q486972
type Q15617994
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?y ) WHERE { { ?n property:P138 ?o . ?n rdf:type ontology:Q82799 . ?o rdf:type ontology:Q486972 } UNION { ?n property:P138 ?o . ?n rdf:type ontology:Q82799 . ?o rdf:type ontology:Q15617994 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { resource:Q25303577 property:P138 ?q . { { ?q rdf:type ontology:Q486972 } UNION { ?q rdf:type ontology:Q15617994 } } } } . FILTER ( ?y > ?t ) }
Danziger Toscano
2
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type human settlement
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Vallon
relation named after
type human settlement
type designation for an administrative territorial entity
[{'concept': 'name'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?y ) WHERE { { ?n property:named_after ?o . ?n rdf:type ontology:name . ?o rdf:type ontology:human_settlement } UNION { ?n property:named_after ?o . ?n rdf:type ontology:name . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { resource:Vallon property:named_after ?q . { { ?q rdf:type ontology:human_settlement } UNION { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?y > ?t ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q340169 Q3305213
USER
Which names are expressed in atleast 7 medias and paintings ?
(c(Q340169)|c(Q3305213),P180,c(Q82799))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
value 7
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?o WHERE { VALUES ( ?i ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } . ?x rdf:type ?i } GROUP BY ?o } . FILTER ( ?f >= 7 ) }
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type painting
value 7
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?o WHERE { VALUES ( ?i ) { ( ontology:media ) ( ontology:painting ) } . ?x rdf:type ?i } GROUP BY ?o } . FILTER ( ?f >= 7 ) }
[]
name media painting
Q5 Q726 Q144
SYSTEM
human, horse, dog
Q5 Q726 Q144
(c(Q340169)|c(Q3305213),P180,c(Q82799))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
value 7
[ANSWERS] are expressed in atleast 7 medias and paintings
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?o WHERE { VALUES ( ?i ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } . ?x rdf:type ?i } GROUP BY ?o } . FILTER ( ?f >= 7 ) }
human horse dog
Human, horse and dog are expressed in atleast 7 medias and paintings
human horse dog
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type painting
value 7
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?o WHERE { VALUES ( ?i ) { ( ontology:media ) ( ontology:painting ) } . ?x rdf:type ?i } GROUP BY ?o } . FILTER ( ?f >= 7 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3102268
P106
Q12737077 Q28640
USER
How many occupations and professions do Georges Benoît do for a living ?
(Q3102268,P106,c(Q12737077)) (Q3102268,P106,c(Q28640))
action count
action union
action filter_type
action find
entity Q3102268
relation P106
type Q12737077
action filter_type
action find
entity Q3102268
relation P106
type Q28640
['Q3102268', 'P106', {'concept': 'Q12737077'}] ['Q3102268', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { resource:Q3102268 property:P106 ?i . ?i rdf:type ontology:Q12737077 } UNION { resource:Q3102268 property:P106 ?i . ?i rdf:type ontology:Q28640 } }
Georges Benoît
action count
action union
action filter_type
action find
entity Georges Benoît
relation occupation
type occupation
action filter_type
action find
entity Georges Benoît
relation occupation
type profession
['Georges Benoît', 'occupation', {'concept': 'occupation'}] ['Georges Benoît', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { resource:Georges_Benoît property:occupation ?i . ?i rdf:type ontology:occupation } UNION { resource:Georges_Benoît property:occupation ?i . ?i rdf:type ontology:profession } }
[]
occupation profession
SYSTEM
1 occupations and 1 professions
Q2526255 Q33999
(Q3102268,P106,c(Q12737077)) (Q3102268,P106,c(Q28640))
action count
action union
action filter_type
action find
entity Q3102268
relation P106
type Q12737077
action filter_type
action find
entity Q3102268
relation P106
type Q28640
[ANSWER]
['Q3102268', 'P106', {'concept': 'Q12737077'}] ['Q3102268', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { resource:Q3102268 property:P106 ?i . ?i rdf:type ontology:Q12737077 } UNION { resource:Q3102268 property:P106 ?i . ?i rdf:type ontology:Q28640 } }
film director actor
1 occupations and 1 professions
action count
action union
action filter_type
action find
entity Georges Benoît
relation occupation
type occupation
action filter_type
action find
entity Georges Benoît
relation occupation
type profession
['Georges Benoît', 'occupation', {'concept': 'occupation'}] ['Georges Benoît', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { resource:Georges_Benoît property:occupation ?i . ?i rdf:type ontology:occupation } UNION { resource:Georges_Benoît property:occupation ?i . ?i rdf:type ontology:profession } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q18783400 Q11060274
USER
How many names are depicted in around 20 genres of sculpture and prints ?
(c(Q18783400)|c(Q11060274),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
value 20
[[{'concept': 'Q18783400'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { FILTER ( ?k = 20 ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?r WHERE { VALUES ( ?w ) { ( ontology:Q18783400 ) ( ontology:Q11060274 ) } . ?s rdf:type ?w } GROUP BY ?r } }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type print
value 20
[[{'concept': 'genre of sculpture'}, {'concept': 'print'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { FILTER ( ?k = 20 ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?r WHERE { VALUES ( ?w ) { ( ontology:genre_of_sculpture ) ( ontology:print ) } . ?s rdf:type ?w } GROUP BY ?r } }
[]
name genre of sculpture print
SYSTEM
2
Q5 Q726
(c(Q18783400)|c(Q11060274),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
value 20
[ANSWER]
[[{'concept': 'Q18783400'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { FILTER ( ?k = 20 ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?r WHERE { VALUES ( ?w ) { ( ontology:Q18783400 ) ( ontology:Q11060274 ) } . ?s rdf:type ?w } GROUP BY ?r } }
human horse
2
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type print
value 20
[[{'concept': 'genre of sculpture'}, {'concept': 'print'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { FILTER ( ?k = 20 ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?r WHERE { VALUES ( ?w ) { ( ontology:genre_of_sculpture ) ( ontology:print ) } . ?s rdf:type ?w } GROUP BY ?r } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q2221906 Q15619164 Q82799
USER
How many names are the eponym of atleast 1 geographic locations or abstract beings ?
(c(Q82799),P138,c(Q2221906)|c(Q15619164))
action count
action atleast
action union
action find_tuple_counts
relation P138
type Q82799
type Q2221906
action find_tuple_counts
relation P138
type Q82799
type Q15619164
value 1
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q2221906'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { FILTER ( ?j >= 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?j ) WHERE { { ?b rdf:type ontology:Q82799 . ?y rdf:type ontology:Q2221906 . ?b property:P138 ?y } UNION { ?b property:P138 ?y . ?b rdf:type ontology:Q82799 . ?y rdf:type ontology:Q15619164 } } GROUP BY ?b } }
action count
action atleast
action union
action find_tuple_counts
relation named after
type name
type geographic location
action find_tuple_counts
relation named after
type name
type abstract being
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'geographic location'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { FILTER ( ?j >= 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?j ) WHERE { { ?b rdf:type ontology:name . ?y rdf:type ontology:geographic_location . ?b property:named_after ?y } UNION { ?b property:named_after ?y . ?b rdf:type ontology:name . ?y rdf:type ontology:abstract_being } } GROUP BY ?b } }
[]
geographic location abstract being name
SYSTEM
6
Q1069827 Q21493520 Q17643158 Q20818054 Q20963077 Q22922124
(c(Q82799),P138,c(Q2221906)|c(Q15619164))
action count
action atleast
action union
action find_tuple_counts
relation P138
type Q82799
type Q2221906
action find_tuple_counts
relation P138
type Q82799
type Q15619164
value 1
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q2221906'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { FILTER ( ?j >= 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?j ) WHERE { { ?b rdf:type ontology:Q82799 . ?y rdf:type ontology:Q2221906 . ?b property:P138 ?y } UNION { ?b property:P138 ?y . ?b rdf:type ontology:Q82799 . ?y rdf:type ontology:Q15619164 } } GROUP BY ?b } }
Rosario Bergmann If-Jesus-Christ-Had-Not-Died-For-Thee-Thou-Hadst-Been-Damned Giolla Íosa Aryaman von Mecklenburg-Schwerin
6
action count
action atleast
action union
action find_tuple_counts
relation named after
type name
type geographic location
action find_tuple_counts
relation named after
type name
type abstract being
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'geographic location'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { FILTER ( ?j >= 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?j ) WHERE { { ?b rdf:type ontology:name . ?y rdf:type ontology:geographic_location . ?b property:named_after ?y } UNION { ?b property:named_after ?y . ?b rdf:type ontology:name . ?y rdf:type ontology:abstract_being } } GROUP BY ?b } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q25212228
P138
Q12737077 Q15617994 Q82799
USER
How many names have around the same number of occupations and administrative territories as their toponym as Émile-Louis ?
(c(Q82799),P138,c(Q12737077)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q12737077
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action count
action filter_multi_types
action find
entity Q25212228
relation P138
type Q12737077
type Q15617994
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q12737077'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:Q12737077 ) ( ontology:Q15617994 ) } } . resource:Q25212228 property:P138 ?w } } . FILTER ( ?q = ?m ) . { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?q ) WHERE { VALUES ( ?y ) { ( ontology:Q15617994 ) ( ontology:Q12737077 ) } . ?l rdf:type ?y } GROUP BY ?i } }
Émile-Louis
action count
action approx
action union
action find_tuple_counts
relation named after
type name
type occupation
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Émile-Louis
relation named after
type occupation
type designation for an administrative territorial entity
[{'concept': 'name'}, 'named after', [{'concept': 'occupation'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:occupation ) ( ontology:designation_for_an_administrative_territorial_entity ) } } . resource:Émile-Louis property:named_after ?w } } . FILTER ( ?q = ?m ) . { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?q ) WHERE { VALUES ( ?y ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:occupation ) } . ?l rdf:type ?y } GROUP BY ?i } }
[]
occupation designation for an administrative territorial entity name
SYSTEM
86
Q18335877 Q25212228 Q6501864 Q27022433 Q18198499 Q16281329 Q25368020 Q23727105 Q18043344 Q16428618 Q1069827 Q46767 Q1061262 Q19558843 Q25115046 Q16871796 Q23688105 Q1158323 Q1370531 Q8046631 Q13099004 Q17747435 Q21508058 Q16869754 Q20747163 Q17847495 Q15629400 Q1746111 Q23885849 Q1812295 Q25343999 Q21161805 Q21449089 Q1643088 Q21507928 Q2909103 Q24529820 Q807882 Q21448754 Q25058808 Q18198433 Q13553585 Q24805372 Q21491852 Q19847573 Q568872 Q25303577 Q714189 Q18309769 Q17643158 Q21506697 Q2160221 Q16865178 Q26985935 Q179234 Q21517798 Q18198435 Q688520 Q928249 Q318363 Q24566045 Q1724227 Q26262632 Q23773623 Q20027829 Q18578754 Q25201582 Q24035235 Q22738156 Q13626156 Q19831835 Q16965278 Q20818054 Q16883336 Q25326750 Q20963077 Q612479 Q17625919 Q26247962 Q22922124 Q16877784 Q23301520 Q16865123 Q20727079 Q16881199 Q21491815
(c(Q82799),P138,c(Q12737077)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q12737077
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action count
action filter_multi_types
action find
entity Q25212228
relation P138
type Q12737077
type Q15617994
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q12737077'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:Q12737077 ) ( ontology:Q15617994 ) } } . resource:Q25212228 property:P138 ?w } } . FILTER ( ?q = ?m ) . { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?q ) WHERE { VALUES ( ?y ) { ( ontology:Q15617994 ) ( ontology:Q12737077 ) } . ?l rdf:type ?y } GROUP BY ?i } }
Prévot Émile-Louis Kaplan Danziger Elizur Sha'aban Racine Poisson Renard Súla Rosario Meyer Ruby Pseudo-Lucian Louarn Lancaster de Bragança Albrecht Meister (surname) Yael Larsen Ruzena Delaroche Eastman Saccharomyces carlsbergensis Rózsa Dimorphotheca ecklonis Michael Gregorio Achaz Van Leemput Grenier Cain Lebreton Ramos Mouton Boissel Rameau Barbus Müller Ahrens Dumoulin Peleg Gold Bigot Poulain Laserbeak Palmer Vallon Duce Macdara If-Jesus-Christ-Had-Not-Died-For-Thee-Thou-Hadst-Been-Damned Lenormand Roche Bureau Froment Cro-Magnon Appenzeller Phanuel Arminia Kelly Abel Pignon Rose Ofer Lamour Saxon Voisin Roux Kleineidam Zijlstra Ackermann Qutb Wald Giolla Íosa Silver Février Aryaman Koehler Du Moulin Master of The Hours of Henri II von Mecklenburg-Schwerin Napoli Aonchotheca moraveci Buffet Schultheiss Picard Le Guen
86
action count
action approx
action union
action find_tuple_counts
relation named after
type name
type occupation
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Émile-Louis
relation named after
type occupation
type designation for an administrative territorial entity
[{'concept': 'name'}, 'named after', [{'concept': 'occupation'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:occupation ) ( ontology:designation_for_an_administrative_territorial_entity ) } } . resource:Émile-Louis property:named_after ?w } } . FILTER ( ?q = ?m ) . { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?q ) WHERE { VALUES ( ?y ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:occupation ) } . ?l rdf:type ?y } GROUP BY ?i } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q201251
P180
Q82799 Q15709879 Q18783400
USER
Which names are expressed in lesser number of artwork series and genres of sculpture than peacock ?
(c(Q15709879)|c(Q18783400),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action count
action filter_multi_types
action find_reverse
entity Q201251
relation P180
type Q15709879
type Q18783400
[[{'concept': 'Q15709879'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?f ) WHERE { { ?p property:P180 ?k . ?k rdf:type ontology:Q82799 . ?p rdf:type ontology:Q18783400 } UNION { ?p property:P180 ?k . ?k rdf:type ontology:Q82799 . ?p rdf:type ontology:Q15709879 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { ?q property:P180 resource:Q201251 . { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15709879 ) ( ontology:Q18783400 ) } } } } . FILTER ( ?f < ?v ) }
peacock
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action count
action filter_multi_types
action find_reverse
entity peacock
relation depicts
type artwork series
type genre of sculpture
[[{'concept': 'artwork series'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?f ) WHERE { { ?p property:depicts ?k . ?k rdf:type ontology:name . ?p rdf:type ontology:genre_of_sculpture } UNION { ?p property:depicts ?k . ?k rdf:type ontology:name . ?p rdf:type ontology:artwork_series } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { ?q property:depicts resource:peacock . { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:artwork_series ) ( ontology:genre_of_sculpture ) } } } } . FILTER ( ?f < ?v ) }
[]
name artwork series genre of sculpture
Q1807269 Q876933 Q134609
SYSTEM
leek, magi, Cynara scolymus
Q13219075 Q134609 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q5070208 Q859257 Q10968813
(c(Q15709879)|c(Q18783400),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action count
action filter_multi_types
action find_reverse
entity Q201251
relation P180
type Q15709879
type Q18783400
[ANSWERS] are expressed in lesser number of artwork series and genres of sculpture than peacock
[[{'concept': 'Q15709879'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?f ) WHERE { { ?p property:P180 ?k . ?k rdf:type ontology:Q82799 . ?p rdf:type ontology:Q18783400 } UNION { ?p property:P180 ?k . ?k rdf:type ontology:Q82799 . ?p rdf:type ontology:Q15709879 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { ?q property:P180 resource:Q201251 . { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15709879 ) ( ontology:Q18783400 ) } } } } . FILTER ( ?f < ?v ) }
octopus Cynara scolymus toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin butterfly trout cattle goose Boy cannoneer leek fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp kangaroo fly jay
Leek, magi and Cynara scolymus are expressed in lesser number of artwork series and genres of sculpture than peacock
leek magi Cynara scolymus
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action count
action filter_multi_types
action find_reverse
entity peacock
relation depicts
type artwork series
type genre of sculpture
[[{'concept': 'artwork series'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?f ) WHERE { { ?p property:depicts ?k . ?k rdf:type ontology:name . ?p rdf:type ontology:genre_of_sculpture } UNION { ?p property:depicts ?k . ?k rdf:type ontology:name . ?p rdf:type ontology:artwork_series } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { ?q property:depicts resource:peacock . { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:artwork_series ) ( ontology:genre_of_sculpture ) } } } } . FILTER ( ?f < ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q144
P180
Q82799 Q15709879 Q18783400
USER
And how about dog?
(c(Q15709879)|c(Q18783400),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action count
action filter_multi_types
action find_reverse
entity Q144
relation P180
type Q15709879
type Q18783400
[[{'concept': 'Q15709879'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) ?h WHERE { VALUES ( ?l ) { ( ontology:Q15709879 ) ( ontology:Q18783400 ) } . ?n rdf:type ?l } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:P180 resource:Q144 . { VALUES ( ?t ) { ( ontology:Q18783400 ) ( ontology:Q15709879 ) } . ?q rdf:type ?t } } } . FILTER ( ?b < ?o ) }
dog
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action count
action filter_multi_types
action find_reverse
entity dog
relation depicts
type artwork series
type genre of sculpture
[[{'concept': 'artwork series'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) ?h WHERE { VALUES ( ?l ) { ( ontology:artwork_series ) ( ontology:genre_of_sculpture ) } . ?n rdf:type ?l } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:depicts resource:dog . { VALUES ( ?t ) { ( ontology:genre_of_sculpture ) ( ontology:artwork_series ) } . ?q rdf:type ?t } } } . FILTER ( ?b < ?o ) }
[]
name artwork series genre of sculpture
Q1807269 Q876933 Q152
SYSTEM
leek, magi, fish
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q15709879)|c(Q18783400),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action count
action filter_multi_types
action find_reverse
entity Q144
relation P180
type Q15709879
type Q18783400
[ANSWERS]
[[{'concept': 'Q15709879'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) ?h WHERE { VALUES ( ?l ) { ( ontology:Q15709879 ) ( ontology:Q18783400 ) } . ?n rdf:type ?l } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:P180 resource:Q144 . { VALUES ( ?t ) { ( ontology:Q18783400 ) ( ontology:Q15709879 ) } . ?q rdf:type ?t } } } . FILTER ( ?b < ?o ) }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
leek magi fish
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action count
action filter_multi_types
action find_reverse
entity dog
relation depicts
type artwork series
type genre of sculpture
[[{'concept': 'artwork series'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) ?h WHERE { VALUES ( ?l ) { ( ontology:artwork_series ) ( ontology:genre_of_sculpture ) } . ?n rdf:type ?l } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:depicts resource:dog . { VALUES ( ?t ) { ( ontology:genre_of_sculpture ) ( ontology:artwork_series ) } . ?q rdf:type ?t } } } . FILTER ( ?b < ?o ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q876933
P140
Q874405
USER
What is the religious affiliation of that name ?
(Q876933,P140,c(Q874405))
action filter_type
action find
entity Q876933
relation P140
type Q874405
['Q876933', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?g WHERE { resource:Q876933 property:P140 ?g . ?g rdf:type ontology:Q874405 }
magi
action filter_type
action find
entity magi
relation religion
type social group
['magi', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?g WHERE { resource:magi property:religion ?g . ?g rdf:type ontology:social_group }
[]
social group
Clarification for simple ques.
Q1807269
SYSTEM
Did you mean leek ?
Q1807269 Q876933 Q152
(Q1807269,P140,c(Q874405)) (Q876933,P140,c(Q874405)) (Q152,P140,c(Q874405))
[ANSWER]
['Q1807269', 'P140', {'concept': 'Q874405'}] ['Q876933', 'P140', {'concept': 'Q874405'}] ['Q152', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?g WHERE { resource:Q876933 property:P140 ?g . ?g rdf:type ontology:Q874405 }
leek magi fish
Did you mean leek ?
leek
['leek', 'religion', {'concept': 'social group'}] ['magi', 'religion', {'concept': 'social group'}] ['fish', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?g WHERE { resource:magi property:religion ?g . ?g rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
USER
No, I meant magi. Could you tell me the answer for that?
(Q876933,P140,c(Q874405))
Q876933
['Q876933', 'P140', {'concept': 'Q874405'}]
['magi', 'religion', {'concept': 'social group'}]
[]
Q9601
SYSTEM
Zoroastrianism
Q9601
(Q876933,P140,c(Q874405))
action filter_type
action find
entity Q876933
relation P140
type Q874405
The religious affiliation of that name is called [ANSWER]
['Q876933', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?g WHERE { resource:Q876933 property:P140 ?g . ?g rdf:type ontology:Q874405 }
Zoroastrianism
The religious affiliation of that name is called Zoroastrianism
Zoroastrianism
action filter_type
action find
entity magi
relation religion
type social group
['magi', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?g WHERE { resource:magi property:religion ?g . ?g rdf:type ontology:social_group }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q56061 Q12737077 Q82799
USER
Which names have max number of administrative territories and occupations as their namesake ?
(c(Q82799),P138,c(Q56061)|c(Q12737077))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q12737077
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?p ) WHERE { VALUES ( ?f ) { ( ontology:Q12737077 ) ( ontology:Q56061 ) } . ?o rdf:type ?f } GROUP BY ?y } } . { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?m ) WHERE { { ?a property:P138 ?c . ?a rdf:type ontology:Q82799 . ?c rdf:type ontology:Q12737077 } UNION { ?a property:P138 ?c . ?a rdf:type ontology:Q82799 . ?c rdf:type ontology:Q56061 } } GROUP BY ?a } . FILTER ( ?m = ?z ) }
action argmax
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type occupation
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?p ) WHERE { VALUES ( ?f ) { ( ontology:occupation ) ( ontology:administrative_territorial_entity ) } . ?o rdf:type ?f } GROUP BY ?y } } . { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?m ) WHERE { { ?a property:named_after ?c . ?a rdf:type ontology:name . ?c rdf:type ontology:occupation } UNION { ?a property:named_after ?c . ?a rdf:type ontology:name . ?c rdf:type ontology:administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?m = ?z ) }
[]
administrative territorial entity occupation name
Q1158446 Q1158882 Q11231408
SYSTEM
Smith, Fisher, Fischer
Q23688105 Q23599481 Q16869665 Q1158446 Q1158882 Q11231408 Q24699545 Q15785531 Q5352294 Q813701 Q23783070 Q23995126 Q21501910 Q24451619 Q1260304 Q21493520 Q1882407 Q16860286 Q16865812 Q1755217 Q22922124 Q24689291 Q16877784 Q16148136 Q19899706
(c(Q82799),P138,c(Q56061)|c(Q12737077))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q12737077
[ANSWERS] have max number of administrative territories and occupations as their namesake
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?p ) WHERE { VALUES ( ?f ) { ( ontology:Q12737077 ) ( ontology:Q56061 ) } . ?o rdf:type ?f } GROUP BY ?y } } . { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?m ) WHERE { { ?a property:P138 ?c . ?a rdf:type ontology:Q82799 . ?c rdf:type ontology:Q12737077 } UNION { ?a property:P138 ?c . ?a rdf:type ontology:Q82799 . ?c rdf:type ontology:Q56061 } } GROUP BY ?a } . FILTER ( ?m = ?z ) }
de Bragança Bouvier Draper Smith Fisher Fischer Saunier Barber Fisichella Becker Potier Mercier Boulanger Métivier Berger Bergmann MacGowan Boucher Couture Magowan von Mecklenburg-Schwerin Vigneron Napoli Archer Sawyer
Smith, Fisher and Fischer have max number of administrative territories and occupations as their namesake
Smith Fisher Fischer
action argmax
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type occupation
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?p ) WHERE { VALUES ( ?f ) { ( ontology:occupation ) ( ontology:administrative_territorial_entity ) } . ?o rdf:type ?f } GROUP BY ?y } } . { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?m ) WHERE { { ?a property:named_after ?c . ?a rdf:type ontology:name . ?c rdf:type ontology:occupation } UNION { ?a property:named_after ?c . ?a rdf:type ontology:name . ?c rdf:type ontology:administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?m = ?z ) }
[]