Simple Question (Direct)
Simple Question
Q20090152
P641
Q349
USER
Which sport was Yirlania Arroyo a part of ?
(Q20090152,P641,c(Q349))
action filter_type
action find
entity Q20090152
relation P641
type Q349
['Q20090152', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q20090152 property:P641 ?n . ?n rdf:type ontology:Q349 }
Yirlania Arroyo
action filter_type
action find
entity Yirlania Arroyo
relation sport
type sport
['Yirlania Arroyo', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:Yirlania_Arroyo property:sport ?n . ?n rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q20090152,P641,c(Q349))
action filter_type
action find
entity Q20090152
relation P641
type Q349
Yirlania Arroyo was in [ANSWER]
['Q20090152', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q20090152 property:P641 ?n . ?n rdf:type ontology:Q349 }
association football
Yirlania Arroyo was in association football
association football
action filter_type
action find
entity Yirlania Arroyo
relation sport
type sport
['Yirlania Arroyo', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:Yirlania_Arroyo property:sport ?n . ?n rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20090152
P734
Q82799
USER
Who has the surname that person ?
(Q2736,P734,c(Q82799))
action filter_type
action find
entity Q20090152
relation P734
type Q82799
['Q2736', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q20090152 property:P734 ?k . ?k rdf:type ontology:Q82799 }
Yirlania Arroyo
action filter_type
action find
entity Yirlania Arroyo
relation family name
type name
['association football', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Yirlania_Arroyo property:family_name ?k . ?k rdf:type ontology:name }
[]
name
Q20977885
SYSTEM
Arroyo
Q20977885
(Q2736,P734,c(Q82799))
action filter_type
action find
entity Q20090152
relation P734
type Q82799
[ANSWER] has the surname that person
['Q2736', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q20090152 property:P734 ?k . ?k rdf:type ontology:Q82799 }
Arroyo
Arroyo has the surname that person
Arroyo
action filter_type
action find
entity Yirlania Arroyo
relation family name
type name
['association football', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Yirlania_Arroyo property:family_name ?k . ?k rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q20977885 Q20090152
P734
Q502895
USER
Does Yirlania Arroyo have that name as surname ?
(Q20090152,P734,Q20977885)
action is_in
entity Q20977885
action find
entity Q20090152
relation P734
['Q20090152', 'P734', 'Q20977885']
ASK WHERE { resource:Q20090152 property:P734 resource:Q20977885 }
Arroyo Yirlania Arroyo
action is_in
entity Arroyo
action find
entity Yirlania Arroyo
relation family name
['Yirlania Arroyo', 'family name', 'Arroyo']
ASK WHERE { resource:Yirlania_Arroyo property:family_name resource:Arroyo }
[]
common name
SYSTEM
YES
(Q20090152,P734,Q20977885)
action is_in
entity Q20977885
action find
entity Q20090152
relation P734
[ANSWER]
['Q20090152', 'P734', 'Q20977885']
ASK WHERE { resource:Q20090152 property:P734 resource:Q20977885 }
Yes
action is_in
entity Arroyo
action find
entity Yirlania Arroyo
relation family name
['Yirlania Arroyo', 'family name', 'Arroyo']
ASK WHERE { resource:Yirlania_Arroyo property:family_name resource:Arroyo }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1717138 Q20090152
P106
Q12737077
USER
Which occupations are the professions of Yirlania Arroyo and Jürgen Ey ?
AND((Q20090152,P106,c(Q12737077)), (Q1717138,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q20090152
relation P106
action find
entity Q1717138
relation P106
type Q12737077
{'AND': [['Q20090152', 'P106', {'concept': 'Q12737077'}], ['Q1717138', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q20090152 property:P106 ?e . resource:Q1717138 property:P106 ?e }
Jürgen Ey Yirlania Arroyo
action filter_type
action intersection
action find
entity Yirlania Arroyo
relation occupation
action find
entity Jürgen Ey
relation occupation
type occupation
{'AND': [['Yirlania Arroyo', 'occupation', {'concept': 'occupation'}], ['Jürgen Ey', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Yirlania_Arroyo property:occupation ?e . resource:Jürgen_Ey property:occupation ?e }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
AND((Q20090152,P106,c(Q12737077)), (Q1717138,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q20090152
relation P106
action find
entity Q1717138
relation P106
type Q12737077
The [ANSWER] is the professions of Yirlania Arroyo and Jürgen Ey
{'AND': [['Q20090152', 'P106', {'concept': 'Q12737077'}], ['Q1717138', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q20090152 property:P106 ?e . resource:Q1717138 property:P106 ?e }
association football player
The association football player is the professions of Yirlania Arroyo and Jürgen Ey
association football player
action filter_type
action intersection
action find
entity Yirlania Arroyo
relation occupation
action find
entity Jürgen Ey
relation occupation
type occupation
{'AND': [['Yirlania Arroyo', 'occupation', {'concept': 'occupation'}], ['Jürgen Ey', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Yirlania_Arroyo property:occupation ?e . resource:Jürgen_Ey property:occupation ?e }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P366
Q349 Q811979 Q2235308
USER
Which sports represent the main use of min number of architectural structures or ship types ?
(c(Q811979)|c(Q2235308),P366,c(Q349))
action argmin
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q811979
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
[[{'concept': 'Q811979'}, {'concept': 'Q2235308'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?e ) { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?o ) WHERE { VALUES ( ?x ) { ( ontology:Q2235308 ) ( ontology:Q811979 ) } . ?s rdf:type ?x } GROUP BY ?a } } . FILTER ( ?c = ?e ) . { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?c ) WHERE { ?i rdf:type ?p . VALUES ( ?p ) { ( ontology:Q811979 ) ( ontology:Q2235308 ) } } GROUP BY ?h } }
action argmin
action union
action find_reverse_tuple_counts
relation use
type sport
type architectural structure
action find_reverse_tuple_counts
relation use
type sport
type ship type
[[{'concept': 'architectural structure'}, {'concept': 'ship type'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?e ) { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?o ) WHERE { VALUES ( ?x ) { ( ontology:ship_type ) ( ontology:architectural_structure ) } . ?s rdf:type ?x } GROUP BY ?a } } . FILTER ( ?c = ?e ) . { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?c ) WHERE { ?i rdf:type ?p . VALUES ( ?p ) { ( ontology:architectural_structure ) ( ontology:ship_type ) } } GROUP BY ?h } }
[]
sport architectural structure ship type
Q183018 Q500050 Q108429
SYSTEM
bandy, cross country running, archery
Q7856 Q206989 Q14300548 Q183018 Q36908 Q500050 Q1875777 Q108429 Q177275 Q2736 Q847 Q41466 Q22857 Q1194269 Q41323 Q7291
(c(Q811979)|c(Q2235308),P366,c(Q349))
action argmin
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q811979
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
[ANSWERS] represent the main use of min number of architectural structures or ship types
[[{'concept': 'Q811979'}, {'concept': 'Q2235308'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?e ) { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?o ) WHERE { VALUES ( ?x ) { ( ontology:Q2235308 ) ( ontology:Q811979 ) } . ?s rdf:type ?x } GROUP BY ?a } } . FILTER ( ?c = ?e ) . { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?c ) WHERE { ?i rdf:type ?p . VALUES ( ?p ) { ( ontology:Q811979 ) ( ontology:Q2235308 ) } } GROUP BY ?h } }
rallying shooting sport skating bandy mountaineering cross country running air racing archery bobsleigh association football tennis ice hockey climbing harness racing American football badminton
Bandy, cross country running and archery represent the main use of min number of architectural structures or ship types
bandy cross country running archery
action argmin
action union
action find_reverse_tuple_counts
relation use
type sport
type architectural structure
action find_reverse_tuple_counts
relation use
type sport
type ship type
[[{'concept': 'architectural structure'}, {'concept': 'ship type'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?e ) { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?o ) WHERE { VALUES ( ?x ) { ( ontology:ship_type ) ( ontology:architectural_structure ) } . ?s rdf:type ?x } GROUP BY ?a } } . FILTER ( ?c = ?e ) . { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?c ) WHERE { ?i rdf:type ?p . VALUES ( ?p ) { ( ontology:architectural_structure ) ( ontology:ship_type ) } } GROUP BY ?h } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q216946
P417
Q502895 Q12737077
USER
How many people are the patron saints of more number of occupations than Charles Borromeo ?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q216946
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?o ) WHERE { ?e property:P417 ?m . ?m rdf:type ontology:Q502895 . ?e rdf:type ontology:Q12737077 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { resource:Q216946 property:P417 ?s . ?s rdf:type ontology:Q502895 } } . FILTER ( ?o > ?l ) }
Charles Borromeo
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Charles Borromeo
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?o ) WHERE { ?e property:patron_saint ?m . ?m rdf:type ontology:common_name . ?e rdf:type ontology:occupation } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { resource:Charles_Borromeo property:patron_saint ?s . ?s rdf:type ontology:common_name } } . FILTER ( ?o > ?l ) }
[]
common name occupation
SYSTEM
54
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q216946
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?o ) WHERE { ?e property:P417 ?m . ?m rdf:type ontology:Q502895 . ?e rdf:type ontology:Q12737077 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { resource:Q216946 property:P417 ?s . ?s rdf:type ontology:Q502895 } } . FILTER ( ?o > ?l ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Charles Borromeo
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?o ) WHERE { ?e property:patron_saint ?m . ?m rdf:type ontology:common_name . ?e rdf:type ontology:occupation } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { resource:Charles_Borromeo property:patron_saint ?s . ?s rdf:type ontology:common_name } } . FILTER ( ?o > ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q119512
P417
Q502895 Q12737077
USER
And what about William of Maleval?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q119512
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:P417 ?o . ?c rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q502895 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Q119512 property:P417 ?q . ?q rdf:type ontology:Q502895 } } . FILTER ( ?i > ?s ) }
William of Maleval
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity William of Maleval
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:patron_saint ?o . ?c rdf:type ontology:occupation . ?o rdf:type ontology:common_name } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:William_of_Maleval property:patron_saint ?q . ?q rdf:type ontology:common_name } } . FILTER ( ?i > ?s ) }
[]
common name occupation
SYSTEM
16
Q229190 Q328804 Q166876 Q170547 Q128538 Q183240 Q196653 Q44265 Q192816 Q43982 Q179718 Q43600 Q744884 Q151967 Q200895 Q44248
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q119512
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:P417 ?o . ?c rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q502895 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Q119512 property:P417 ?q . ?q rdf:type ontology:Q502895 } } . FILTER ( ?i > ?s ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Luke the Evangelist Saint Lucy Saint Veronica Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Zita Saint Blaise Agatha of Sicily Jerome
16
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity William of Maleval
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:patron_saint ?o . ?c rdf:type ontology:occupation . ?o rdf:type ontology:common_name } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:William_of_Maleval property:patron_saint ?q . ?q rdf:type ontology:common_name } } . FILTER ( ?i > ?s ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q25058808
P138
Q15617994 Q2221906 Q82799
USER
How many names are the eponym of more number of administrative territories or geographic locations than Dumoulin ?
(c(Q82799),P138,c(Q15617994)|c(Q2221906))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q2221906
action count
action filter_multi_types
action find
entity Q25058808
relation P138
type Q15617994
type Q2221906
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?h WHERE { VALUES ( ?i ) { ( ontology:Q15617994 ) ( ontology:Q2221906 ) } . ?z rdf:type ?i } GROUP BY ?h } . FILTER ( ?q > ?v ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { resource:Q25058808 property:P138 ?j . { { ?j rdf:type ontology:Q15617994 } UNION { ?j rdf:type ontology:Q2221906 } } } } }
Dumoulin
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type name
type geographic location
action count
action filter_multi_types
action find
entity Dumoulin
relation named after
type designation for an administrative territorial entity
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?h WHERE { VALUES ( ?i ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:geographic_location ) } . ?z rdf:type ?i } GROUP BY ?h } . FILTER ( ?q > ?v ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { resource:Dumoulin property:named_after ?j . { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j rdf:type ontology:geographic_location } } } } }
[]
designation for an administrative territorial entity geographic location name
SYSTEM
3
Q21493520 Q22922124 Q24229341
(c(Q82799),P138,c(Q15617994)|c(Q2221906))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q2221906
action count
action filter_multi_types
action find
entity Q25058808
relation P138
type Q15617994
type Q2221906
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?h WHERE { VALUES ( ?i ) { ( ontology:Q15617994 ) ( ontology:Q2221906 ) } . ?z rdf:type ?i } GROUP BY ?h } . FILTER ( ?q > ?v ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { resource:Q25058808 property:P138 ?j . { { ?j rdf:type ontology:Q15617994 } UNION { ?j rdf:type ontology:Q2221906 } } } } }
Bergmann von Mecklenburg-Schwerin Toscano
3
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type name
type geographic location
action count
action filter_multi_types
action find
entity Dumoulin
relation named after
type designation for an administrative territorial entity
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?h WHERE { VALUES ( ?i ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:geographic_location ) } . ?z rdf:type ?i } GROUP BY ?h } . FILTER ( ?q > ?v ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { resource:Dumoulin property:named_after ?j . { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j rdf:type ontology:geographic_location } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q21449089
P138
Q15617994 Q2221906 Q82799
USER
And what about Lebreton?
(c(Q82799),P138,c(Q15617994)|c(Q2221906))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q2221906
action count
action filter_multi_types
action find
entity Q21449089
relation P138
type Q15617994
type Q2221906
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?r . VALUES ( ?r ) { ( ontology:Q15617994 ) ( ontology:Q2221906 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Q21449089 property:P138 ?s . { { ?s rdf:type ontology:Q15617994 } UNION { ?s rdf:type ontology:Q2221906 } } } } . FILTER ( ?n > ?z ) }
Lebreton
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type name
type geographic location
action count
action filter_multi_types
action find
entity Lebreton
relation named after
type designation for an administrative territorial entity
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?r . VALUES ( ?r ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:geographic_location ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Lebreton property:named_after ?s . { { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?s rdf:type ontology:geographic_location } } } } . FILTER ( ?n > ?z ) }
[]
designation for an administrative territorial entity geographic location name
SYSTEM
3
Q21493520 Q22922124 Q24229341
(c(Q82799),P138,c(Q15617994)|c(Q2221906))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q2221906
action count
action filter_multi_types
action find
entity Q21449089
relation P138
type Q15617994
type Q2221906
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?r . VALUES ( ?r ) { ( ontology:Q15617994 ) ( ontology:Q2221906 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Q21449089 property:P138 ?s . { { ?s rdf:type ontology:Q15617994 } UNION { ?s rdf:type ontology:Q2221906 } } } } . FILTER ( ?n > ?z ) }
Bergmann von Mecklenburg-Schwerin Toscano
3
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type name
type geographic location
action count
action filter_multi_types
action find
entity Lebreton
relation named after
type designation for an administrative territorial entity
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?r . VALUES ( ?r ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:geographic_location ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Lebreton property:named_after ?s . { { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?s rdf:type ontology:geographic_location } } } } . FILTER ( ?n > ?z ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q8436 Q151885 Q82799
USER
Which names are a part of exactly 1 families and concepts ?
(c(Q82799),P361,c(Q8436)|c(Q151885))
action equal
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q151885
value 1
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?l WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) ?l WHERE { VALUES ( ?h ) { ( ontology:Q8436 ) ( ontology:Q151885 ) } . ?u rdf:type ?h } GROUP BY ?l } }
action equal
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type concept
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'concept'}]]
SELECT DISTINCT ?l WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) ?l WHERE { VALUES ( ?h ) { ( ontology:family ) ( ontology:concept ) } . ?u rdf:type ?h } GROUP BY ?l } }
[]
family concept name
Q1058384 Q746990 Q876933
SYSTEM
hakham, Brahman, magi
Q1058384 Q235598 Q742083 Q746990 Q876933
(c(Q82799),P361,c(Q8436)|c(Q151885))
action equal
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q151885
value 1
[ANSWERS] are a part of exactly 1 families and concepts
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?l WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) ?l WHERE { VALUES ( ?h ) { ( ontology:Q8436 ) ( ontology:Q151885 ) } . ?u rdf:type ?h } GROUP BY ?l } }
hakham Piso Princes of Paliano Brahman magi
Hakham, Brahman and magi are a part of exactly 1 families and concepts
hakham Brahman magi
action equal
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type concept
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'concept'}]]
SELECT DISTINCT ?l WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) ?l WHERE { VALUES ( ?h ) { ( ontology:family ) ( ontology:concept ) } . ?u rdf:type ?h } GROUP BY ?l } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q746990
P140
Q874405
USER
Which social group is the religion of that name ?
(Q746990,P140,c(Q874405))
action filter_type
action find
entity Q746990
relation P140
type Q874405
['Q746990', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?w WHERE { resource:Q746990 property:P140 ?w . ?w rdf:type ontology:Q874405 }
Brahman
action filter_type
action find
entity Brahman
relation religion
type social group
['Brahman', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?w WHERE { resource:Brahman property:religion ?w . ?w rdf:type ontology:social_group }
[]
social group
Clarification for simple ques.
Q876933
SYSTEM
Did you mean magi ?
Q1058384 Q746990 Q876933
(Q1058384,P140,c(Q874405)) (Q746990,P140,c(Q874405)) (Q876933,P140,c(Q874405))
[ANSWER]
['Q1058384', 'P140', {'concept': 'Q874405'}] ['Q746990', 'P140', {'concept': 'Q874405'}] ['Q876933', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?w WHERE { resource:Q746990 property:P140 ?w . ?w rdf:type ontology:Q874405 }
hakham Brahman magi
Did you mean magi ?
magi
['hakham', 'religion', {'concept': 'social group'}] ['Brahman', 'religion', {'concept': 'social group'}] ['magi', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?w WHERE { resource:Brahman property:religion ?w . ?w rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
USER
No, I meant Brahman. Could you tell me the answer for that?
(Q746990,P140,c(Q874405))
Q746990
['Q746990', 'P140', {'concept': 'Q874405'}]
['Brahman', 'religion', {'concept': 'social group'}]
[]
Q9089
SYSTEM
Hinduism
Q9089
(Q746990,P140,c(Q874405))
action filter_type
action find
entity Q746990
relation P140
type Q874405
Hindu [ANSWER] is the religion of that name
['Q746990', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?w WHERE { resource:Q746990 property:P140 ?w . ?w rdf:type ontology:Q874405 }
Hinduism
Hindu Hinduism is the religion of that name
Hinduism
action filter_type
action find
entity Brahman
relation religion
type social group
['Brahman', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?w WHERE { resource:Brahman property:religion ?w . ?w rdf:type ontology:social_group }
[]