Simple Question (Direct)
Simple Question
Q5545191
P734
Q82799
USER
Who has the surname George Thomson ?
(Q5545191,P734,c(Q82799))
action filter_type
action find
entity Q5545191
relation P734
type Q82799
['Q5545191', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q5545191 property:P734 ?n . ?n rdf:type ontology:Q82799 }
George Thomson
action filter_type
action find
entity George Thomson
relation family name
type name
['George Thomson', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:George_Thomson property:family_name ?n . ?n rdf:type ontology:name }
[]
name
Q2803437
SYSTEM
Thomson
Q2803437
(Q5545191,P734,c(Q82799))
action filter_type
action find
entity Q5545191
relation P734
type Q82799
[ANSWER] has the surname George [ANSWER]
['Q5545191', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q5545191 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Thomson
Thomson has the surname George Thomson
Thomson
action filter_type
action find
entity George Thomson
relation family name
type name
['George Thomson', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:George_Thomson property:family_name ?n . ?n rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5545191
P27
Q15617994
USER
Which administrative territory is George Thomson an inhabitant of ?
(Q5545191,P27,c(Q15617994))
action filter_type
action find
entity Q5545191
relation P27
type Q15617994
['Q5545191', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q5545191 property:P27 ?w }
George Thomson
action filter_type
action find
entity George Thomson
relation country of citizenship
type designation for an administrative territorial entity
['George Thomson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:George_Thomson property:country_of_citizenship ?w }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q5545191,P27,c(Q15617994))
action filter_type
action find
entity Q5545191
relation P27
type Q15617994
The [ANSWER] is George Thomson an inhabitant of
['Q5545191', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q5545191 property:P27 ?w }
United Kingdom
The United Kingdom is George Thomson an inhabitant of
United Kingdom
action filter_type
action find
entity George Thomson
relation country of citizenship
type designation for an administrative territorial entity
['George Thomson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:George_Thomson property:country_of_citizenship ?w }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3363075
Q15617994
USER
And how about Rex Norris?
(Q3363075,P27,c(Q15617994))
action filter_type
action find
entity Q3363075
relation P27
type Q15617994
['Q3363075', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q3363075 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Rex Norris
action filter_type
action find
entity Rex Norris
relation country of citizenship
type designation for an administrative territorial entity
['Rex Norris', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Rex_Norris property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
(Q3363075,P27,c(Q15617994))
action filter_type
action find
entity Q3363075
relation P27
type Q15617994
[ANSWER]
['Q3363075', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q3363075 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
India
India
action filter_type
action find
entity Rex Norris
relation country of citizenship
type designation for an administrative territorial entity
['Rex Norris', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Rex_Norris property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q668
P840
Q15850590 Q1318295
USER
How many theatrical genres and narratives have their narrative set in India ?
(c(Q15850590),P840,Q668) (c(Q1318295),P840,Q668)
action count
action union
action filter_type
action find_reverse
entity Q668
relation P840
type Q15850590
action filter_type
action find_reverse
entity Q668
relation P840
type Q1318295
[{'concept': 'Q15850590'}, 'P840', 'Q668'] [{'concept': 'Q1318295'}, 'P840', 'Q668']
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s rdf:type ?p . VALUES ( ?p ) { ( ontology:Q15850590 ) ( ontology:Q1318295 ) } }
India
action count
action union
action filter_type
action find_reverse
entity India
relation narrative location
type theatrical genre
action filter_type
action find_reverse
entity India
relation narrative location
type narrative
[{'concept': 'theatrical genre'}, 'narrative location', 'India'] [{'concept': 'narrative'}, 'narrative location', 'India']
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s rdf:type ?p . VALUES ( ?p ) { ( ontology:theatrical_genre ) ( ontology:narrative ) } }
[]
theatrical genre narrative
SYSTEM
1 theatrical genres and 1 narratives
Q7740074 Q3007234
(c(Q15850590),P840,Q668) (c(Q1318295),P840,Q668)
action count
action union
action filter_type
action find_reverse
entity Q668
relation P840
type Q15850590
action filter_type
action find_reverse
entity Q668
relation P840
type Q1318295
[ANSWER]
[{'concept': 'Q15850590'}, 'P840', 'Q668'] [{'concept': 'Q1318295'}, 'P840', 'Q668']
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s rdf:type ?p . VALUES ( ?p ) { ( ontology:Q15850590 ) ( ontology:Q1318295 ) } }
Ghare Bhaire The Last Savage
1 theatrical genres and 1 narratives
action count
action union
action filter_type
action find_reverse
entity India
relation narrative location
type theatrical genre
action filter_type
action find_reverse
entity India
relation narrative location
type narrative
[{'concept': 'theatrical genre'}, 'narrative location', 'India'] [{'concept': 'narrative'}, 'narrative location', 'India']
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s rdf:type ?p . VALUES ( ?p ) { ( ontology:theatrical_genre ) ( ontology:narrative ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q17656783 Q2803437
P407
Q34770
USER
Which languages are Thomson and Gunman commits suicide at University of Texas composed in ?
AND((Q2803437,P407,c(Q34770)), (Q17656783,P407,c(Q34770)))
action filter_type
action intersection
action find
entity Q2803437
relation P407
action find
entity Q17656783
relation P407
type Q34770
{'AND': [['Q2803437', 'P407', {'concept': 'Q34770'}], ['Q17656783', 'P407', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?b WHERE { resource:Q2803437 property:P407 ?b . resource:Q17656783 property:P407 ?b . ?b rdf:type ontology:Q34770 }
Gunman commits suicide at University of Texas Thomson
action filter_type
action intersection
action find
entity Thomson
relation language of work or name
action find
entity Gunman commits suicide at University of Texas
relation language of work or name
type language
{'AND': [['Thomson', 'language of work or name', {'concept': 'language'}], ['Gunman commits suicide at University of Texas', 'language of work or name', {'concept': 'language'}]]}
SELECT DISTINCT ?b WHERE { resource:Thomson property:language_of_work_or_name ?b . resource:Gunman_commits_suicide_at_University_of_Texas property:language_of_work_or_name ?b . ?b rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
AND((Q2803437,P407,c(Q34770)), (Q17656783,P407,c(Q34770)))
action filter_type
action intersection
action find
entity Q2803437
relation P407
action find
entity Q17656783
relation P407
type Q34770
Suicide at University of Texas Thomson and Gunman are commits composed in the [ANSWER]
{'AND': [['Q2803437', 'P407', {'concept': 'Q34770'}], ['Q17656783', 'P407', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?b WHERE { resource:Q2803437 property:P407 ?b . resource:Q17656783 property:P407 ?b . ?b rdf:type ontology:Q34770 }
English
Suicide at University of Texas Thomson and Gunman are commits composed in the English
English
action filter_type
action intersection
action find
entity Thomson
relation language of work or name
action find
entity Gunman commits suicide at University of Texas
relation language of work or name
type language
{'AND': [['Thomson', 'language of work or name', {'concept': 'language'}], ['Gunman commits suicide at University of Texas', 'language of work or name', {'concept': 'language'}]]}
SELECT DISTINCT ?b WHERE { resource:Thomson property:language_of_work_or_name ?b . resource:Gunman_commits_suicide_at_University_of_Texas property:language_of_work_or_name ?b . ?b rdf:type ontology:language }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q184273
P1441
Q234460 Q15416 Q502895
USER
Which people are from the works of around the same number of texts and television programs as Zedekiah ?
(c(Q502895),P1441,c(Q234460)|c(Q15416))
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action count
action filter_multi_types
action find
entity Q184273
relation P1441
type Q234460
type Q15416
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { resource:Q184273 property:P1441 ?y . { { ?y rdf:type ontology:Q234460 } UNION { ?y rdf:type ontology:Q15416 } } } } . FILTER ( ?l = ?c ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) ?s WHERE { { ?s rdf:type ontology:Q502895 . ?g rdf:type ontology:Q234460 . ?s property:P1441 ?g } UNION { ?s property:P1441 ?g . ?s rdf:type ontology:Q502895 . ?g rdf:type ontology:Q15416 } } GROUP BY ?s } }
Zedekiah
action approx
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television program
action count
action filter_multi_types
action find
entity Zedekiah
relation present in work
type text
type television program
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television program'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { resource:Zedekiah property:present_in_work ?y . { { ?y rdf:type ontology:text } UNION { ?y rdf:type ontology:television_program } } } } . FILTER ( ?l = ?c ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) ?s WHERE { { ?s rdf:type ontology:common_name . ?g rdf:type ontology:text . ?s property:present_in_work ?g } UNION { ?s property:present_in_work ?g . ?s rdf:type ontology:common_name . ?g rdf:type ontology:television_program } } GROUP BY ?s } }
[]
text television program common name
Q37085 Q550255 Q145746
SYSTEM
Solomon, J. William Fulbright, Joseph
Q41863 Q1143157 Q1341397 Q194064 Q466687 Q321469 Q18699270 Q319116 Q18699272 Q12591 Q213633 Q221514 Q30914 Q937827 Q4057937 Q214648 Q18699312 Q211663 Q176125 Q8423 Q1938388 Q2040793 Q125102 Q954820 Q244912 Q313216 Q313214 Q645796 Q361636 Q205523 Q1281177 Q807236 Q2256348 Q1686571 Q1675214 Q188794 Q844433 Q28730 Q200902 Q3798672 Q126689 Q145746 Q463934 Q721295 Q1403627 Q1133523 Q1133337 Q200637 Q3259530 Q3187975 Q2116944 Q3783913 Q946939 Q888890 Q1771358 Q272277 Q460763 Q205372 Q717814 Q830183 Q6577515 Q63070 Q7493584 Q1300996 Q851686 Q1333225 Q40662 Q206238 Q400294 Q922184 Q156328 Q3785031 Q1768161 Q6323112 Q171724 Q550255 Q889694 Q8027483 Q816397 Q2038223 Q264699 Q313415 Q360378 Q363660 Q665541 Q1516550 Q840401 Q37085 Q109920 Q536019 Q213850 Q74891 Q45090 Q336832 Q1941782 Q1542853 Q184273 Q107626 Q205365 Q477527 Q18699310 Q62788 Q313421 Q313423 Q362021 Q262766 Q225198 Q313228 Q536485 Q273517 Q3752551 Q671872 Q16845969 Q192785 Q308320 Q1030008 Q319049 Q18699300 Q18699268 Q229702 Q574641 Q2590260 Q599907 Q282220 Q313237
(c(Q502895),P1441,c(Q234460)|c(Q15416))
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action count
action filter_multi_types
action find
entity Q184273
relation P1441
type Q234460
type Q15416
[ANSWERS] are from the works of around the same number of texts and television programs as Zedekiah
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { resource:Q184273 property:P1441 ?y . { { ?y rdf:type ontology:Q234460 } UNION { ?y rdf:type ontology:Q15416 } } } } . FILTER ( ?l = ?c ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) ?s WHERE { { ?s rdf:type ontology:Q502895 . ?g rdf:type ontology:Q234460 . ?s property:P1441 ?g } UNION { ?s property:P1441 ?g . ?s rdf:type ontology:Q502895 . ?g rdf:type ontology:Q15416 } } GROUP BY ?s } }
Halga Jair Michal Ezekiel Damaris Abishag Achim Nathan Eliud Nebuchadnezzar II Deborah Manoah Ahaz Delilah Adoniram Samson Jacob Rehoboam Gideon Cyrus the Great Miriam Reu Necho II Yael Hezekiah Uzziah Ahaziah of Judah Ibzan Amnon Zipporah Beowulf Barak Shealtiel Jehu Ithamar Isaiah Kenan Saul Shem Ingeld Jehoshaphat Joseph Athaliah Jezebel Hrethel Jephthah Abner Japheth Loretta Jones Judith Wealhþeow Heardred Phut Nahor Salomon Bathsheba Benjamin Absalom Hadadezer Eve Samuel Mary Magdalene Sheleph Ehud Mephibosheth Elon John the Baptist Elisha Ahitophel Caleb Manasseh of Judah Heoroweard Islamic views on Abraham Nahor Daniel J. William Fulbright Hygelac Wise woman of Abel Ben-Hadad I Amminadab Wil Wheaton Asa of Judah Adonijah Elimelek Hosea Shamgar Laban Solomon Jotham of Judah Ecgþeow Amos Jonathan Jesse Jehoahaz of Judah Nadabe Alphaeus Zedekiah Seth Cain Amram Matthan Jethro Abel Amon of Judah Eli Junia Belshazzar Josiah Othniel Abijah of Judah Freawaru Isaac Hygd Goliath Abdon Tamar Jeconiah Eleazar Zadok Ham Balaam Ahijah the Shilonite Baruch ben Neriah Judah Amaziah of Judah
Solomon, J. William Fulbright and Joseph are from the works of around the same number of texts and television programs as Zedekiah
Solomon J. William Fulbright Joseph
action approx
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television program
action count
action filter_multi_types
action find
entity Zedekiah
relation present in work
type text
type television program
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television program'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { resource:Zedekiah property:present_in_work ?y . { { ?y rdf:type ontology:text } UNION { ?y rdf:type ontology:television_program } } } } . FILTER ( ?l = ?c ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) ?s WHERE { { ?s rdf:type ontology:common_name . ?g rdf:type ontology:text . ?s property:present_in_work ?g } UNION { ?s property:present_in_work ?g . ?s rdf:type ontology:common_name . ?g rdf:type ontology:television_program } } GROUP BY ?s } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q18647981
P725
Q502895 Q1001378
USER
How many cinematic techniques had greater number of people as the dubbing artist than Moana ?
(c(Q1001378),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q1001378
type Q502895
action count
action filter_type
action find
entity Q18647981
relation P725
type Q1001378
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?c ) WHERE { ?p property:P725 ?d . ?p rdf:type ontology:Q1001378 . ?d rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?c > ?m ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { ?y rdf:type ontology:Q1001378 . resource:Q18647981 property:P725 ?y } } }
Moana
action count
action greater
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
action count
action filter_type
action find
entity Moana
relation voice actor
type cinematic technique
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?c ) WHERE { ?p property:voice_actor ?d . ?p rdf:type ontology:cinematic_technique . ?d rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?c > ?m ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { ?y rdf:type ontology:cinematic_technique . resource:Moana property:voice_actor ?y } } }
[]
common name cinematic technique
SYSTEM
9
Q1093555 Q15270647 Q2329413 Q9321426 Q6144664 Q392530 Q2388653 Q246283 Q191803
(c(Q1001378),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q1001378
type Q502895
action count
action filter_type
action find
entity Q18647981
relation P725
type Q1001378
[ANSWER]
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?c ) WHERE { ?p property:P725 ?d . ?p rdf:type ontology:Q1001378 . ?d rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?c > ?m ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { ?y rdf:type ontology:Q1001378 . resource:Q18647981 property:P725 ?y } } }
Swan Lake Zootopia Barbie as the Princess and the Pauper Finding Dory Inside Out Treasure Planet Tom Sawyer Frozen The Lion King II: Simba's Pride
9
action count
action greater
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
action count
action filter_type
action find
entity Moana
relation voice actor
type cinematic technique
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?c ) WHERE { ?p property:voice_actor ?d . ?p rdf:type ontology:cinematic_technique . ?d rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?c > ?m ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { ?y rdf:type ontology:cinematic_technique . resource:Moana property:voice_actor ?y } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q221679
P725
Q502895 Q1001378
USER
And also tell me about Meet the Robinsons?
(c(Q1001378),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q1001378
type Q502895
action count
action filter_type
action find
entity Q221679
relation P725
type Q1001378
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?j ) WHERE { ?h property:P725 ?u . ?h rdf:type ontology:Q1001378 . ?u rdf:type ontology:Q502895 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Q221679 property:P725 ?c . ?c rdf:type ontology:Q1001378 } } . FILTER ( ?j > ?v ) }
Meet the Robinsons
action count
action greater
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
action count
action filter_type
action find
entity Meet the Robinsons
relation voice actor
type cinematic technique
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?j ) WHERE { ?h property:voice_actor ?u . ?h rdf:type ontology:cinematic_technique . ?u rdf:type ontology:common_name } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Meet_the_Robinsons property:voice_actor ?c . ?c rdf:type ontology:cinematic_technique } } . FILTER ( ?j > ?v ) }
[]
common name cinematic technique
SYSTEM
34
Q656998 Q6505964 Q120367 Q2388260 Q21079862 Q1093555 Q15270742 Q15270647 Q27229786 Q2329413 Q9321426 Q562140 Q6144664 Q392530 Q192212 Q23647031 Q182153 Q15728879 Q2388653 Q246283 Q908816 Q244434 Q4096274 Q18647981 Q655133 Q2615381 Q191803 Q2613318 Q171048 Q15140309 Q15975680 Q4243413 Q329603 Q633053
(c(Q1001378),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q1001378
type Q502895
action count
action filter_type
action find
entity Q221679
relation P725
type Q1001378
[ANSWER]
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?j ) WHERE { ?h property:P725 ?u . ?h rdf:type ontology:Q1001378 . ?u rdf:type ontology:Q502895 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Q221679 property:P725 ?c . ?c rdf:type ontology:Q1001378 } } . FILTER ( ?j > ?v ) }
Garfield's Pet Force Rudolph the Red-Nosed Reindeer: The Movie Shark Tale The Humpbacked Horse Cars 3 Swan Lake Adventures of Mowgli Zootopia The Animated Adventures of Tom Sawyer Barbie as the Princess and the Pauper Finding Dory Yobi, the Five Tailed Fox Inside Out Treasure Planet Cars 2 Batman: The Killing Joke Cars My Little Pony: Equestria Girls 2 – Rainbow Rocks Tom Sawyer Frozen The Secret of Kells Lady and the Tramp II: Scamp's Adventure The Bremen Town Musicians Moana Treasure Island Korgoth of Barbaria The Lion King II: Simba's Pride Garfield's Fun Fest Toy Story Emil & Ida i Lönneberga Tamako Love Story Ku! Kin-dza-dza Laura's Star Surf's Up
34
action count
action greater
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
action count
action filter_type
action find
entity Meet the Robinsons
relation voice actor
type cinematic technique
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?j ) WHERE { ?h property:voice_actor ?u . ?h rdf:type ontology:cinematic_technique . ?u rdf:type ontology:common_name } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Meet_the_Robinsons property:voice_actor ?c . ?c rdf:type ontology:cinematic_technique } } . FILTER ( ?j > ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q187149
P35
Q502895 Q35798 Q7275
USER
Which people are the chiefs of state of greater number of executive branches or states than Umberto II of Italy ?
(c(Q35798)|c(Q7275),P35,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q187149
relation P35
type Q35798
type Q7275
[[{'concept': 'Q35798'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?p WHERE { VALUES ( ?l ) { ( ontology:Q35798 ) ( ontology:Q7275 ) } . ?w rdf:type ?l } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:P35 resource:Q187149 . { VALUES ( ?q ) { ( ontology:Q35798 ) ( ontology:Q7275 ) } . ?j rdf:type ?q } } } . FILTER ( ?x > ?f ) }
Umberto II of Italy
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type state
action count
action filter_multi_types
action find_reverse
entity Umberto II of Italy
relation head of state
type executive branch
type state
[[{'concept': 'executive branch'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?p WHERE { VALUES ( ?l ) { ( ontology:executive_branch ) ( ontology:state ) } . ?w rdf:type ?l } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:head_of_state resource:Umberto_II_of_Italy . { VALUES ( ?q ) { ( ontology:executive_branch ) ( ontology:state ) } . ?j rdf:type ?q } } } . FILTER ( ?x > ?f ) }
[]
common name executive branch state
Q9682 Q269412 Q1224
SYSTEM
Elizabeth II, George V, Carlo Azeglio Ciampi
Q310994 Q154952 Q297950 Q45068 Q152274 Q237951 Q1245 Q1241 Q1240 Q1242 Q153688 Q1238 Q188214 Q1230 Q1233 Q1235 Q150642 Q299152 Q181261 Q57279 Q173347 Q189575 Q269412 Q327203 Q168691 Q57287 Q154912 Q229300 Q1228 Q1224 Q1220 Q174662 Q9682
(c(Q35798)|c(Q7275),P35,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q187149
relation P35
type Q35798
type Q7275
[ANSWERS] are the chiefs of state of greater number of executive branches or states than Umberto II of Italy
[[{'concept': 'Q35798'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?p WHERE { VALUES ( ?l ) { ( ontology:Q35798 ) ( ontology:Q7275 ) } . ?w rdf:type ?l } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:P35 resource:Q187149 . { VALUES ( ?q ) { ( ontology:Q35798 ) ( ontology:Q7275 ) } . ?j rdf:type ?q } } } . FILTER ( ?x > ?f ) }
Patrick Hillery Willem-Alexander of the Netherlands R. Venkataraman Carl XVI Gustaf of Sweden Edvard Beneš Douglas Hyde Enrico De Nicola Giovanni Gronchi Antonio Segni Luigi Einaudi Umberto I of Italy Giuseppe Saragat Mary Robinson Francesco Cossiga Sandro Pertini Giovanni Leone Vittorio Emanuele III Emil Constantinescu Charles Albert of Sardinia Traian Băsescu Éamon de Valera Ion Iliescu George V Seán T. O'Kelly Victor Emmanuel II of Savoy Harald V of Norway Olav V of Norway Quentin Bryce Oscar Luigi Scalfaro Carlo Azeglio Ciampi Giorgio Napolitano Mary McAleese Elizabeth II
Elizabeth II, George V and Carlo Azeglio Ciampi are the chiefs of state of greater number of executive branches or states than Umberto II of Italy
Elizabeth II George V Carlo Azeglio Ciampi
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type state
action count
action filter_multi_types
action find_reverse
entity Umberto II of Italy
relation head of state
type executive branch
type state
[[{'concept': 'executive branch'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?p WHERE { VALUES ( ?l ) { ( ontology:executive_branch ) ( ontology:state ) } . ?w rdf:type ?l } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:head_of_state resource:Umberto_II_of_Italy . { VALUES ( ?q ) { ( ontology:executive_branch ) ( ontology:state ) } . ?j rdf:type ?q } } } . FILTER ( ?x > ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1233
P35
Q502895 Q35798 Q7275
USER
And also tell me about Sandro Pertini?
(c(Q35798)|c(Q7275),P35,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q1233
relation P35
type Q35798
type Q7275
[[{'concept': 'Q35798'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?k WHERE { { ?z property:P35 ?k . ?k rdf:type ontology:Q502895 . ?z rdf:type ontology:Q7275 } UNION { ?z property:P35 ?k . ?k rdf:type ontology:Q502895 . ?z rdf:type ontology:Q35798 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { { ?e rdf:type ontology:Q35798 } UNION { ?e rdf:type ontology:Q7275 } } . ?e property:P35 resource:Q1233 } } . FILTER ( ?s > ?t ) }
Sandro Pertini
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type state
action count
action filter_multi_types
action find_reverse
entity Sandro Pertini
relation head of state
type executive branch
type state
[[{'concept': 'executive branch'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?k WHERE { { ?z property:head_of_state ?k . ?k rdf:type ontology:common_name . ?z rdf:type ontology:state } UNION { ?z property:head_of_state ?k . ?k rdf:type ontology:common_name . ?z rdf:type ontology:executive_branch } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { { ?e rdf:type ontology:executive_branch } UNION { ?e rdf:type ontology:state } } . ?e property:head_of_state resource:Sandro_Pertini } } . FILTER ( ?s > ?t ) }
[]
common name executive branch state
Q9682 Q269412 Q150642
SYSTEM
Elizabeth II, George V, Vittorio Emanuele III
Q153688 Q150642 Q269412 Q168691 Q9682
(c(Q35798)|c(Q7275),P35,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q1233
relation P35
type Q35798
type Q7275
[ANSWERS]
[[{'concept': 'Q35798'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?k WHERE { { ?z property:P35 ?k . ?k rdf:type ontology:Q502895 . ?z rdf:type ontology:Q7275 } UNION { ?z property:P35 ?k . ?k rdf:type ontology:Q502895 . ?z rdf:type ontology:Q35798 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { { ?e rdf:type ontology:Q35798 } UNION { ?e rdf:type ontology:Q7275 } } . ?e property:P35 resource:Q1233 } } . FILTER ( ?s > ?t ) }
Umberto I of Italy Vittorio Emanuele III George V Victor Emmanuel II of Savoy Elizabeth II
Elizabeth II George V Vittorio Emanuele III
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type state
action count
action filter_multi_types
action find_reverse
entity Sandro Pertini
relation head of state
type executive branch
type state
[[{'concept': 'executive branch'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?k WHERE { { ?z property:head_of_state ?k . ?k rdf:type ontology:common_name . ?z rdf:type ontology:state } UNION { ?z property:head_of_state ?k . ?k rdf:type ontology:common_name . ?z rdf:type ontology:executive_branch } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { { ?e rdf:type ontology:executive_branch } UNION { ?e rdf:type ontology:state } } . ?e property:head_of_state resource:Sandro_Pertini } } . FILTER ( ?s > ?t ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P1028
Q502895 Q386724 Q41176
USER
Which people gives more number of works or buildings in charity than that person ?
(c(Q386724)|c(Q41176),P1028,c(Q502895))
[[{'concept': 'Q386724'}, {'concept': 'Q41176'}], 'P1028', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1028 ?y } UNION { ?x property:P1028 ?y } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q41176 }
[[{'concept': 'work'}, {'concept': 'building'}], 'donated by', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { { ?z property:donated_by ?y } UNION { ?x property:donated_by ?y } } . ?z rdf:type ontology:work . ?y rdf:type ontology:common_name . ?x rdf:type ontology:building }
[]
common name work building
Comparative|More/Less|Mult. entity type|Clarification
Q150642
SYSTEM
Did you mean Vittorio Emanuele III ?
(c(Q386724)|c(Q41176),P1028,c(Q502895))
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q41176'}], 'P1028', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1028 ?y } UNION { ?x property:P1028 ?y } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q41176 }
Did you mean Vittorio Emanuele III ?
Vittorio Emanuele III
[[{'concept': 'work'}, {'concept': 'building'}], 'donated by', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { { ?z property:donated_by ?y } UNION { ?x property:donated_by ?y } } . ?z rdf:type ontology:work . ?y rdf:type ontology:common_name . ?x rdf:type ontology:building }
[]
Comparative Reasoning (All)
USER
No, I meant George V. Could you tell me the answer for that?
(c(Q386724)|c(Q41176),P1028,c(Q502895))
Q269412
[[{'concept': 'Q386724'}, {'concept': 'Q41176'}], 'P1028', {'concept': 'Q502895'}]
[[{'concept': 'work'}, {'concept': 'building'}], 'donated by', {'concept': 'common name'}]
[]
Q18676673 Q452811
SYSTEM
Bryant M. Hanley, Jr., Jakub Zadzik
Q18676673 Q452811
(c(Q386724)|c(Q41176),P1028,c(Q502895))
[ANSWERS] give more number of works or buildings in charity than that person
[[{'concept': 'Q386724'}, {'concept': 'Q41176'}], 'P1028', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1028 ?y } UNION { ?x property:P1028 ?y } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q41176 }
Bryant M. Hanley, Jr. Jakub Zadzik
Bryant M. Hanley, Jr. and Jakub Zadzik give more number of works or buildings in charity than that person
Bryant M. Hanley, Jr. Jakub Zadzik
[[{'concept': 'work'}, {'concept': 'building'}], 'donated by', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { { ?z property:donated_by ?y } UNION { ?x property:donated_by ?y } } . ?z rdf:type ontology:work . ?y rdf:type ontology:common_name . ?x rdf:type ontology:building }
[]