Simple Question (Direct)
Simple Question
Q2907840
P106
Q12737077
USER
What does Bob Stirling do for a living ?
(Q2907840,P106,c(Q12737077))
action filter_type
action find
entity Q2907840
relation P106
type Q12737077
['Q2907840', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q2907840 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Bob Stirling
action filter_type
action find
entity Bob Stirling
relation occupation
type occupation
['Bob Stirling', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Bob_Stirling property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q14089670
SYSTEM
rugby union player
Q14089670
(Q2907840,P106,c(Q12737077))
action filter_type
action find
entity Q2907840
relation P106
type Q12737077
Bob Stirling does a [ANSWER] for a living
['Q2907840', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q2907840 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
rugby union player
Bob Stirling does a rugby union player for a living
rugby union player
action filter_type
action find
entity Bob Stirling
relation occupation
type occupation
['Bob Stirling', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Bob_Stirling property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1102192
P110
Q502895 Q26971562 Q571
USER
How many people had done the illustration of more number of comic formats or books than Tony De Saulles ?
(c(Q26971562)|c(Q571),P110,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q26971562
action find_reverse_tuple_counts
relation P110
type Q502895
type Q571
action count
action filter_multi_types
action find_reverse
entity Q1102192
relation P110
type Q26971562
type Q571
[[{'concept': 'Q26971562'}, {'concept': 'Q571'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?s WHERE { VALUES ( ?z ) { ( ontology:Q571 ) ( ontology:Q26971562 ) } . ?d rdf:type ?z } GROUP BY ?s } . FILTER ( ?t > ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { ?g property:P110 resource:Q1102192 . { VALUES ( ?f ) { ( ontology:Q571 ) ( ontology:Q26971562 ) } . ?g rdf:type ?f } } } }
Tony De Saulles
action count
action greater
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type comic format
action find_reverse_tuple_counts
relation illustrator
type common name
type book
action count
action filter_multi_types
action find_reverse
entity Tony De Saulles
relation illustrator
type comic format
type book
[[{'concept': 'comic format'}, {'concept': 'book'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?s WHERE { VALUES ( ?z ) { ( ontology:book ) ( ontology:comic_format ) } . ?d rdf:type ?z } GROUP BY ?s } . FILTER ( ?t > ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { ?g property:illustrator resource:Tony_De_Saulles . { VALUES ( ?f ) { ( ontology:book ) ( ontology:comic_format ) } . ?g rdf:type ?f } } } }
[]
common name comic format book
SYSTEM
103
Q457881 Q1654509 Q24259036 Q24259034 Q982401 Q11264875 Q6682 Q5488651 Q24259199 Q22322914 Q5082131 Q7026779 Q27042725 Q361970 Q7340147 Q772558 Q941468 Q378710 Q17114155 Q16737250 Q12026771 Q128027 Q282121 Q6396491 Q1591928 Q7029528 Q27624911 Q374823 Q525713 Q544975 Q96116 Q313945 Q102108 Q7182001 Q309945 Q650946 Q5721334 Q2535205 Q1507860 Q16065421 Q3272581 Q3260577 Q1866386 Q214565 Q6221056 Q2957653 Q18534452 Q301112 Q19364029 Q272324 Q384225 Q15053140 Q2932464 Q13769198 Q16198124 Q102139 Q729902 Q41513 Q15987638 Q24259053 Q531358 Q15912340 Q22138337 Q17284472 Q15725991 Q6224222 Q206685 Q6787709 Q5363905 Q144520 Q27067551 Q551359 Q999229 Q3528336 Q610576 Q660917 Q27031075 Q3188310 Q167768 Q3018977 Q3433199 Q211619 Q966547 Q3268108 Q1375265 Q313703 Q24259135 Q24259046 Q16030513 Q11644966 Q1018606 Q20155972 Q24259104 Q983349 Q23771657 Q19359177 Q15970956 Q1374807 Q24547769 Q7149500 Q1582739 Q7426424 Q7366035
(c(Q26971562)|c(Q571),P110,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q26971562
action find_reverse_tuple_counts
relation P110
type Q502895
type Q571
action count
action filter_multi_types
action find_reverse
entity Q1102192
relation P110
type Q26971562
type Q571
[ANSWER]
[[{'concept': 'Q26971562'}, {'concept': 'Q571'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?s WHERE { VALUES ( ?z ) { ( ontology:Q571 ) ( ontology:Q26971562 ) } . ?d rdf:type ?z } GROUP BY ?s } . FILTER ( ?t > ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { ?g property:P110 resource:Q1102192 . { VALUES ( ?f ) { ( ontology:Q571 ) ( ontology:Q26971562 ) } . ?g rdf:type ?f } } } }
John Tenniel Jean-Richard Geurts Cory Loftis David Goetz Edward Gorey Akira Kiduki Gustave Doré Frank Newfeld Bill Schwab Kwoon Moon-hee Charles Robinson Nick Bertozzi Richard Forgues Louis Le Breton Rob G. Carlo Chiostri Michał Elwiro Andriolli Katsuhiro Otomo Aliy Zirkle George Tate Josef Wenig Giorgio Vasari Yoshiyuki Sadamoto Kevin Henkes John Gilbert Nicolas Bentley Jan Kostěnec Kōshi Rikudō Howard Pyle Mike Mignola Axel Scheffler Gosho Aoyama Alan Lee Phil Hester Peyo Věnceslav Černý Henry Flint Enrico Mazzanti George Marston Watts Phillips Takao Aoki Louis-Henri Brévière Louis Rhead Beatrix Potter John Batchelor Charb Vladimír Rocman Erhard Altdorfer Anne Leduc-Dardill Masami Tsuda Eduardo Risso Ray Hutchins Cabu Alexandre Moisy Philip Dadd Margrethe II of Denmark David Lloyd William Blake H. R. Hammond Mac George Louisa Anne Meredith Nathaniel Orr Richard George Suter Patric Reynolds Joseph Schindelman John Byrne Albert Uderzo Mato Yoshiaki Sukeno Kurt Wiese Bill Maus Go Nagai Sakura Asagi Tignous Yūji Iwahara Walter Crane Agustin Alessio Jul William Makepeace Thackeray David Wenzel Laurent Sourisseau Dale Baer Léon Benett Luz Georges Wolinski Takeshi Obata Nick Orsi Marty Baumann Tommy McRae Takeshi Nogami Byron Howard Sydney Seymour Lucas Borja Montoro Newell Convers Wyeth Shiyoon Kim Kakuzō Fujiyama Philippe Honoré John Leech A. Barton Kent Paul Bransom Hans Tegner Satoshi Yamamoto Ronnie del Carmen
103
action count
action greater
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type comic format
action find_reverse_tuple_counts
relation illustrator
type common name
type book
action count
action filter_multi_types
action find_reverse
entity Tony De Saulles
relation illustrator
type comic format
type book
[[{'concept': 'comic format'}, {'concept': 'book'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?s WHERE { VALUES ( ?z ) { ( ontology:book ) ( ontology:comic_format ) } . ?d rdf:type ?z } GROUP BY ?s } . FILTER ( ?t > ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { ?g property:illustrator resource:Tony_De_Saulles . { VALUES ( ?f ) { ( ontology:book ) ( ontology:comic_format ) } . ?g rdf:type ?f } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q13769198
P110
Q502895 Q26971562 Q571
USER
And what about Alexandre Moisy?
(c(Q26971562)|c(Q571),P110,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q26971562
action find_reverse_tuple_counts
relation P110
type Q502895
type Q571
action count
action filter_multi_types
action find_reverse
entity Q13769198
relation P110
type Q26971562
type Q571
[[{'concept': 'Q26971562'}, {'concept': 'Q571'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) ?l WHERE { { ?v property:P110 ?l . ?l rdf:type ontology:Q502895 . ?v rdf:type ontology:Q26971562 } UNION { ?v property:P110 ?l . ?l rdf:type ontology:Q502895 . ?v rdf:type ontology:Q571 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g property:P110 resource:Q13769198 . { { ?g rdf:type ontology:Q26971562 } UNION { ?g rdf:type ontology:Q571 } } } } . FILTER ( ?i > ?x ) }
Alexandre Moisy
action count
action greater
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type comic format
action find_reverse_tuple_counts
relation illustrator
type common name
type book
action count
action filter_multi_types
action find_reverse
entity Alexandre Moisy
relation illustrator
type comic format
type book
[[{'concept': 'comic format'}, {'concept': 'book'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) ?l WHERE { { ?v property:illustrator ?l . ?l rdf:type ontology:common_name . ?v rdf:type ontology:comic_format } UNION { ?v property:illustrator ?l . ?l rdf:type ontology:common_name . ?v rdf:type ontology:book } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g property:illustrator resource:Alexandre_Moisy . { { ?g rdf:type ontology:comic_format } UNION { ?g rdf:type ontology:book } } } } . FILTER ( ?i > ?x ) }
[]
common name comic format book
SYSTEM
8
Q378710 Q313945 Q309945 Q214565 Q15987638 Q206685 Q16030513 Q1582739
(c(Q26971562)|c(Q571),P110,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q26971562
action find_reverse_tuple_counts
relation P110
type Q502895
type Q571
action count
action filter_multi_types
action find_reverse
entity Q13769198
relation P110
type Q26971562
type Q571
[ANSWER]
[[{'concept': 'Q26971562'}, {'concept': 'Q571'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) ?l WHERE { { ?v property:P110 ?l . ?l rdf:type ontology:Q502895 . ?v rdf:type ontology:Q26971562 } UNION { ?v property:P110 ?l . ?l rdf:type ontology:Q502895 . ?v rdf:type ontology:Q571 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g property:P110 resource:Q13769198 . { { ?g rdf:type ontology:Q26971562 } UNION { ?g rdf:type ontology:Q571 } } } } . FILTER ( ?i > ?x ) }
Katsuhiro Otomo Gosho Aoyama Peyo Beatrix Potter H. R. Hammond Albert Uderzo Tommy McRae Hans Tegner
8
action count
action greater
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type comic format
action find_reverse_tuple_counts
relation illustrator
type common name
type book
action count
action filter_multi_types
action find_reverse
entity Alexandre Moisy
relation illustrator
type comic format
type book
[[{'concept': 'comic format'}, {'concept': 'book'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) ?l WHERE { { ?v property:illustrator ?l . ?l rdf:type ontology:common_name . ?v rdf:type ontology:comic_format } UNION { ?v property:illustrator ?l . ?l rdf:type ontology:common_name . ?v rdf:type ontology:book } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g property:illustrator resource:Alexandre_Moisy . { { ?g rdf:type ontology:comic_format } UNION { ?g rdf:type ontology:book } } } } . FILTER ( ?i > ?x ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saint of max number of occupations ?
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P417 ?i . ?i rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } GROUP BY ?i } . FILTER ( ?x = ?k ) . { SELECT DISTINCT ( MAX ( ?c ) AS ?k ) { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:P417 ?a . ?a rdf:type ontology:Q502895 . ?j rdf:type ontology:Q12737077 } GROUP BY ?a } } }
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:patron_saint ?i . ?i rdf:type ontology:common_name . ?z rdf:type ontology:occupation } GROUP BY ?i } . FILTER ( ?x = ?k ) . { SELECT DISTINCT ( MAX ( ?c ) AS ?k ) { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:patron_saint ?a . ?a rdf:type ontology:common_name . ?j rdf:type ontology:occupation } GROUP BY ?a } } }
[]
common name occupation
Q179718
SYSTEM
Catherine of Alexandria
Q179718
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[ANSWER] is the patron saint of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P417 ?i . ?i rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } GROUP BY ?i } . FILTER ( ?x = ?k ) . { SELECT DISTINCT ( MAX ( ?c ) AS ?k ) { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:P417 ?a . ?a rdf:type ontology:Q502895 . ?j rdf:type ontology:Q12737077 } GROUP BY ?a } } }
Catherine of Alexandria
Catherine of Alexandria is the patron saint of max number of occupations
Catherine of Alexandria
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:patron_saint ?i . ?i rdf:type ontology:common_name . ?z rdf:type ontology:occupation } GROUP BY ?i } . FILTER ( ?x = ?k ) . { SELECT DISTINCT ( MAX ( ?c ) AS ?k ) { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:patron_saint ?a . ?a rdf:type ontology:common_name . ?j rdf:type ontology:occupation } GROUP BY ?a } } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q179718 Q217050
P2348
Q451967
USER
Was that person associated with Late Antiquity ?
(Q179718,P2348,Q217050)
action is_in
entity Q217050
action find
entity Q179718
relation P2348
['Q179718', 'P2348', 'Q217050']
ASK WHERE { resource:Q179718 property:P2348 resource:Q217050 }
Catherine of Alexandria Late Antiquity
action is_in
entity Late Antiquity
action find
entity Catherine of Alexandria
relation period
['Catherine of Alexandria', 'period', 'Late Antiquity']
ASK WHERE { resource:Catherine_of_Alexandria property:period resource:Late_Antiquity }
[]
human action
SYSTEM
NO
(Q179718,P2348,Q217050)
action is_in
entity Q217050
action find
entity Q179718
relation P2348
[ANSWER]
['Q179718', 'P2348', 'Q217050']
ASK WHERE { resource:Q179718 property:P2348 resource:Q217050 }
No
action is_in
entity Late Antiquity
action find
entity Catherine of Alexandria
relation period
['Catherine of Alexandria', 'period', 'Late Antiquity']
ASK WHERE { resource:Catherine_of_Alexandria property:period resource:Late_Antiquity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2907840 Q20989206
P27
Q15617994
USER
Is Bob Stirling a civilian of Laughton ?
(Q2907840,P27,Q20989206)
action is_in
entity Q20989206
action find
entity Q2907840
relation P27
['Q2907840', 'P27', 'Q20989206']
ASK WHERE { resource:Q2907840 property:P27 resource:Q20989206 }
Bob Stirling Laughton
action is_in
entity Laughton
action find
entity Bob Stirling
relation country of citizenship
['Bob Stirling', 'country of citizenship', 'Laughton']
ASK WHERE { resource:Bob_Stirling property:country_of_citizenship resource:Laughton }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q2907840,P27,Q20989206)
action is_in
entity Q20989206
action find
entity Q2907840
relation P27
[ANSWER]
['Q2907840', 'P27', 'Q20989206']
ASK WHERE { resource:Q2907840 property:P27 resource:Q20989206 }
No
action is_in
entity Laughton
action find
entity Bob Stirling
relation country of citizenship
['Bob Stirling', 'country of citizenship', 'Laughton']
ASK WHERE { resource:Bob_Stirling property:country_of_citizenship resource:Laughton }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q179718 Q7435466 Q79
P27
Q15617994
USER
Is Catherine of Alexandria a citizen of Scot Hay and Egypt ?
(Q179718,P27,Q7435466) (Q179718,P27,Q79)
action is_in
entity Q179718
action intersection
action find_reverse
entity Q7435466
relation P27
action find_reverse
entity Q79
relation P27
['Q179718', 'P27', 'Q7435466'] ['Q179718', 'P27', 'Q79']
ASK WHERE { resource:Q179718 property:P27 resource:Q7435466 . resource:Q179718 property:P27 resource:Q79 }
Catherine of Alexandria Scot Hay Egypt
action is_in
entity Catherine of Alexandria
action intersection
action find_reverse
entity Scot Hay
relation country of citizenship
action find_reverse
entity Egypt
relation country of citizenship
['Catherine of Alexandria', 'country of citizenship', 'Scot Hay'] ['Catherine of Alexandria', 'country of citizenship', 'Egypt']
ASK WHERE { resource:Catherine_of_Alexandria property:country_of_citizenship resource:Scot_Hay . resource:Catherine_of_Alexandria property:country_of_citizenship resource:Egypt }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q179718,P27,Q7435466) (Q179718,P27,Q79)
action is_in
entity Q179718
action intersection
action find_reverse
entity Q7435466
relation P27
action find_reverse
entity Q79
relation P27
[ANSWER]
['Q179718', 'P27', 'Q7435466'] ['Q179718', 'P27', 'Q79']
ASK WHERE { resource:Q179718 property:P27 resource:Q7435466 . resource:Q179718 property:P27 resource:Q79 }
NO and YES respectively
action is_in
entity Catherine of Alexandria
action intersection
action find_reverse
entity Scot Hay
relation country of citizenship
action find_reverse
entity Egypt
relation country of citizenship
['Catherine of Alexandria', 'country of citizenship', 'Scot Hay'] ['Catherine of Alexandria', 'country of citizenship', 'Egypt']
ASK WHERE { resource:Catherine_of_Alexandria property:country_of_citizenship resource:Scot_Hay . resource:Catherine_of_Alexandria property:country_of_citizenship resource:Egypt }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2907840 Q5552543
P27
Q15617994
USER
Does Bob Stirling belong to Gerrish-Higgins School District ?
(Q2907840,P27,Q5552543)
action is_in
entity Q5552543
action find
entity Q2907840
relation P27
['Q2907840', 'P27', 'Q5552543']
ASK WHERE { resource:Q2907840 property:P27 resource:Q5552543 }
Bob Stirling Gerrish-Higgins School District
action is_in
entity Gerrish-Higgins School District
action find
entity Bob Stirling
relation country of citizenship
['Bob Stirling', 'country of citizenship', 'Gerrish-Higgins School District']
ASK WHERE { resource:Bob_Stirling property:country_of_citizenship resource:Gerrish-Higgins_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q2907840,P27,Q5552543)
action is_in
entity Q5552543
action find
entity Q2907840
relation P27
[ANSWER]
['Q2907840', 'P27', 'Q5552543']
ASK WHERE { resource:Q2907840 property:P27 resource:Q5552543 }
No
action is_in
entity Gerrish-Higgins School District
action find
entity Bob Stirling
relation country of citizenship
['Bob Stirling', 'country of citizenship', 'Gerrish-Higgins School District']
ASK WHERE { resource:Bob_Stirling property:country_of_citizenship resource:Gerrish-Higgins_School_District }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q179718
P825
Q41176 Q44539
USER
How many buildings or temples are dedicated to Catherine of Alexandria ?
(c(Q41176),P825,Q179718) (c(Q44539),P825,Q179718)
action count
action union
action filter_type
action find_reverse
entity Q179718
relation P825
type Q41176
action filter_type
action find_reverse
entity Q179718
relation P825
type Q44539
[{'concept': 'Q41176'}, 'P825', 'Q179718'] [{'concept': 'Q44539'}, 'P825', 'Q179718']
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { ?g property:P825 resource:Q179718 . ?g rdf:type ontology:Q41176 } UNION { ?g property:P825 resource:Q179718 . ?g rdf:type ontology:Q44539 } }
Catherine of Alexandria
action count
action union
action filter_type
action find_reverse
entity Catherine of Alexandria
relation dedicated to
type building
action filter_type
action find_reverse
entity Catherine of Alexandria
relation dedicated to
type temple
[{'concept': 'building'}, 'dedicated to', 'Catherine of Alexandria'] [{'concept': 'temple'}, 'dedicated to', 'Catherine of Alexandria']
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { ?g property:dedicated_to resource:Catherine_of_Alexandria . ?g rdf:type ontology:building } UNION { ?g property:dedicated_to resource:Catherine_of_Alexandria . ?g rdf:type ontology:temple } }
[]
building temple
SYSTEM
4
Q7593726 Q20867981 Q24036452 Q17742004
(c(Q41176),P825,Q179718) (c(Q44539),P825,Q179718)
action count
action union
action filter_type
action find_reverse
entity Q179718
relation P825
type Q41176
action filter_type
action find_reverse
entity Q179718
relation P825
type Q44539
[ANSWER]
[{'concept': 'Q41176'}, 'P825', 'Q179718'] [{'concept': 'Q44539'}, 'P825', 'Q179718']
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { ?g property:P825 resource:Q179718 . ?g rdf:type ontology:Q41176 } UNION { ?g property:P825 resource:Q179718 . ?g rdf:type ontology:Q44539 } }
St John the Baptist's Church Catherine of Alexandria's Chapel St Catherine's Church St Catharine's Church
4
action count
action union
action filter_type
action find_reverse
entity Catherine of Alexandria
relation dedicated to
type building
action filter_type
action find_reverse
entity Catherine of Alexandria
relation dedicated to
type temple
[{'concept': 'building'}, 'dedicated to', 'Catherine of Alexandria'] [{'concept': 'temple'}, 'dedicated to', 'Catherine of Alexandria']
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { ?g property:dedicated_to resource:Catherine_of_Alexandria . ?g rdf:type ontology:building } UNION { ?g property:dedicated_to resource:Catherine_of_Alexandria . ?g rdf:type ontology:temple } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q179718
P417
Q28640 Q9332
USER
How many professions or behaviors have Catherine of Alexandria as their patron saint ?
(c(Q28640),P417,Q179718) (c(Q9332),P417,Q179718)
action count
action union
action filter_type
action find_reverse
entity Q179718
relation P417
type Q28640
action filter_type
action find_reverse
entity Q179718
relation P417
type Q9332
[{'concept': 'Q28640'}, 'P417', 'Q179718'] [{'concept': 'Q9332'}, 'P417', 'Q179718']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ?r . VALUES ( ?r ) { ( ontology:Q28640 ) ( ontology:Q9332 ) } }
Catherine of Alexandria
action count
action union
action filter_type
action find_reverse
entity Catherine of Alexandria
relation patron saint
type profession
action filter_type
action find_reverse
entity Catherine of Alexandria
relation patron saint
type behavior
[{'concept': 'profession'}, 'patron saint', 'Catherine of Alexandria'] [{'concept': 'behavior'}, 'patron saint', 'Catherine of Alexandria']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ?r . VALUES ( ?r ) { ( ontology:profession ) ( ontology:behavior ) } }
[]
profession behavior
SYSTEM
3
Q663375 Q189010 Q40348
(c(Q28640),P417,Q179718) (c(Q9332),P417,Q179718)
action count
action union
action filter_type
action find_reverse
entity Q179718
relation P417
type Q28640
action filter_type
action find_reverse
entity Q179718
relation P417
type Q9332
[ANSWER]
[{'concept': 'Q28640'}, 'P417', 'Q179718'] [{'concept': 'Q9332'}, 'P417', 'Q179718']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ?r . VALUES ( ?r ) { ( ontology:Q28640 ) ( ontology:Q9332 ) } }
hatmaking notary lawyer
3
action count
action union
action filter_type
action find_reverse
entity Catherine of Alexandria
relation patron saint
type profession
action filter_type
action find_reverse
entity Catherine of Alexandria
relation patron saint
type behavior
[{'concept': 'profession'}, 'patron saint', 'Catherine of Alexandria'] [{'concept': 'behavior'}, 'patron saint', 'Catherine of Alexandria']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ?r . VALUES ( ?r ) { ( ontology:profession ) ( ontology:behavior ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q838948
USER
Which works of art had their voice dubbing done by min number of people ?
(c(Q838948),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q838948
type Q502895
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?n ) { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?d ) WHERE { ?t property:P725 ?o . ?t rdf:type ontology:Q838948 . ?o rdf:type ontology:Q502895 } GROUP BY ?t } } . { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?e ) WHERE { ?g property:P725 ?c . ?g rdf:type ontology:Q838948 . ?c rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?e = ?n ) }
action argmin
action find_tuple_counts
relation voice actor
type work of art
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?n ) { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?d ) WHERE { ?t property:voice_actor ?o . ?t rdf:type ontology:work_of_art . ?o rdf:type ontology:common_name } GROUP BY ?t } } . { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?e ) WHERE { ?g property:voice_actor ?c . ?g rdf:type ontology:work_of_art . ?c rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?e = ?n ) }
[]
common name work of art
Q190145 Q4468674 Q4204793
SYSTEM
Spider-Man 2, To Kill a Dragon, History of the Arkanar Massacre
Q4346544 Q190145 Q4367569 Q4468674 Q4204793
(c(Q838948),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q838948
type Q502895
Spider-Man 2, To kill a Dragon and History of the Arkanar Massacre had their voice dubbing done by min number of people
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?n ) { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?d ) WHERE { ?t property:P725 ?o . ?t rdf:type ontology:Q838948 . ?o rdf:type ontology:Q502895 } GROUP BY ?t } } . { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?e ) WHERE { ?g property:P725 ?c . ?g rdf:type ontology:Q838948 . ?c rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?e = ?n ) }
Passport Spider-Man 2 The Witches Cave To Kill a Dragon History of the Arkanar Massacre
Spider-Man 2, To kill a Dragon and History of the Arkanar Massacre had their voice dubbing done by min number of people
Spider-Man 2 To Kill a Dragon History of the Arkanar Massacre
action argmin
action find_tuple_counts
relation voice actor
type work of art
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?n ) { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?d ) WHERE { ?t property:voice_actor ?o . ?t rdf:type ontology:work_of_art . ?o rdf:type ontology:common_name } GROUP BY ?t } } . { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?e ) WHERE { ?g property:voice_actor ?c . ?g rdf:type ontology:work_of_art . ?c rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?e = ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q378838
P361
Q838948 Q6619679 Q482994
USER
How many works of art are greater number of fictional humanoids and albums a portion of than The Oldest Profession ?
(c(Q6619679)|c(Q482994),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
action count
action filter_multi_types
action find_reverse
entity Q378838
relation P361
type Q6619679
type Q482994
[[{'concept': 'Q6619679'}, {'concept': 'Q482994'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?h ) WHERE { VALUES ( ?j ) { ( ontology:Q482994 ) ( ontology:Q6619679 ) } . ?o rdf:type ?j } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i property:P361 resource:Q378838 . { VALUES ( ?f ) { ( ontology:Q6619679 ) ( ontology:Q482994 ) } . ?i rdf:type ?f } } } . FILTER ( ?h > ?z ) }
The Oldest Profession
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation part of
type work of art
type album
action count
action filter_multi_types
action find_reverse
entity The Oldest Profession
relation part of
type fictional humanoid
type album
[[{'concept': 'fictional humanoid'}, {'concept': 'album'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?h ) WHERE { VALUES ( ?j ) { ( ontology:album ) ( ontology:fictional_humanoid ) } . ?o rdf:type ?j } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i property:part_of resource:The_Oldest_Profession . { VALUES ( ?f ) { ( ontology:fictional_humanoid ) ( ontology:album ) } . ?i rdf:type ?f } } } . FILTER ( ?h > ?z ) }
[]
work of art fictional humanoid album
SYSTEM
15
Q4143086 Q15624215 Q1209853 Q284184 Q161687 Q1534737 Q205028 Q332368 Q478748 Q103569 Q971109 Q7572454 Q463313 Q232009 Q152185
(c(Q6619679)|c(Q482994),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
action count
action filter_multi_types
action find_reverse
entity Q378838
relation P361
type Q6619679
type Q482994
[ANSWER]
[[{'concept': 'Q6619679'}, {'concept': 'Q482994'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?h ) WHERE { VALUES ( ?j ) { ( ontology:Q482994 ) ( ontology:Q6619679 ) } . ?o rdf:type ?j } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i property:P361 resource:Q378838 . { VALUES ( ?f ) { ( ontology:Q6619679 ) ( ontology:Q482994 ) } . ?i rdf:type ?f } } } . FILTER ( ?h > ?z ) }
Ride Lucy Dick Tracy Ra.One Harry Potter and the Half-Blood Prince Life Iron Man 2 A View to a Kill The Holiday Alien Inferno Space Pirate Captain Harlock Romeo + Juliet Harry Potter and the Deathly Hallows – Part 2 The Legend of Lucy Keyes
15
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation part of
type work of art
type album
action count
action filter_multi_types
action find_reverse
entity The Oldest Profession
relation part of
type fictional humanoid
type album
[[{'concept': 'fictional humanoid'}, {'concept': 'album'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?h ) WHERE { VALUES ( ?j ) { ( ontology:album ) ( ontology:fictional_humanoid ) } . ?o rdf:type ?j } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i property:part_of resource:The_Oldest_Profession . { VALUES ( ?f ) { ( ontology:fictional_humanoid ) ( ontology:album ) } . ?i rdf:type ?f } } } . FILTER ( ?h > ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q734834
P361
Q838948 Q6619679 Q482994
USER
And what about Ghent Altarpiece?
(c(Q6619679)|c(Q482994),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
action count
action filter_multi_types
action find_reverse
entity Q734834
relation P361
type Q6619679
type Q482994
[[{'concept': 'Q6619679'}, {'concept': 'Q482994'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?t ) WHERE { { ?x rdf:type ontology:Q838948 . ?b rdf:type ontology:Q6619679 . ?b property:P361 ?x } UNION { ?b property:P361 ?x . ?b rdf:type ontology:Q482994 . ?x rdf:type ontology:Q838948 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P361 resource:Q734834 . { { ?s rdf:type ontology:Q6619679 } UNION { ?s rdf:type ontology:Q482994 } } } } . FILTER ( ?t > ?m ) }
Ghent Altarpiece
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation part of
type work of art
type album
action count
action filter_multi_types
action find_reverse
entity Ghent Altarpiece
relation part of
type fictional humanoid
type album
[[{'concept': 'fictional humanoid'}, {'concept': 'album'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?t ) WHERE { { ?x rdf:type ontology:work_of_art . ?b rdf:type ontology:fictional_humanoid . ?b property:part_of ?x } UNION { ?b property:part_of ?x . ?b rdf:type ontology:album . ?x rdf:type ontology:work_of_art } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:part_of resource:Ghent_Altarpiece . { { ?s rdf:type ontology:fictional_humanoid } UNION { ?s rdf:type ontology:album } } } } . FILTER ( ?t > ?m ) }
[]
work of art fictional humanoid album
SYSTEM
15
Q4143086 Q15624215 Q1209853 Q284184 Q161687 Q1534737 Q205028 Q332368 Q478748 Q103569 Q971109 Q7572454 Q463313 Q232009 Q152185
(c(Q6619679)|c(Q482994),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
action count
action filter_multi_types
action find_reverse
entity Q734834
relation P361
type Q6619679
type Q482994
[ANSWER]
[[{'concept': 'Q6619679'}, {'concept': 'Q482994'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?t ) WHERE { { ?x rdf:type ontology:Q838948 . ?b rdf:type ontology:Q6619679 . ?b property:P361 ?x } UNION { ?b property:P361 ?x . ?b rdf:type ontology:Q482994 . ?x rdf:type ontology:Q838948 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P361 resource:Q734834 . { { ?s rdf:type ontology:Q6619679 } UNION { ?s rdf:type ontology:Q482994 } } } } . FILTER ( ?t > ?m ) }
Ride Lucy Dick Tracy Ra.One Harry Potter and the Half-Blood Prince Life Iron Man 2 A View to a Kill The Holiday Alien Inferno Space Pirate Captain Harlock Romeo + Juliet Harry Potter and the Deathly Hallows – Part 2 The Legend of Lucy Keyes
15
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation part of
type work of art
type album
action count
action filter_multi_types
action find_reverse
entity Ghent Altarpiece
relation part of
type fictional humanoid
type album
[[{'concept': 'fictional humanoid'}, {'concept': 'album'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?t ) WHERE { { ?x rdf:type ontology:work_of_art . ?b rdf:type ontology:fictional_humanoid . ?b property:part_of ?x } UNION { ?b property:part_of ?x . ?b rdf:type ontology:album . ?x rdf:type ontology:work_of_art } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:part_of resource:Ghent_Altarpiece . { { ?s rdf:type ontology:fictional_humanoid } UNION { ?s rdf:type ontology:album } } } } . FILTER ( ?t > ?m ) }
[]