Simple Question (Direct)
Simple Question
Q318312
P166
Q618779
USER
What was awarded to Ed Begley ?
(Q318312,P166,c(Q618779))
action filter_type
action find
entity Q318312
relation P166
type Q618779
['Q318312', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?p WHERE { resource:Q318312 property:P166 ?p . ?p rdf:type ontology:Q618779 }
Ed Begley
action filter_type
action find
entity Ed Begley
relation award received
type award
['Ed Begley', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?p WHERE { resource:Ed_Begley property:award_received ?p . ?p rdf:type ontology:award }
[]
award
Q1474410
SYSTEM
Tony Award for Best Featured Actor in a Play
Q1474410
(Q318312,P166,c(Q618779))
action filter_type
action find
entity Q318312
relation P166
type Q618779
The Tony Award for Best featured Actor in a Play was awarded to Ed Begley
['Q318312', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?p WHERE { resource:Q318312 property:P166 ?p . ?p rdf:type ontology:Q618779 }
Tony Award for Best Featured Actor in a Play
The Tony Award for Best featured Actor in a Play was awarded to Ed Begley
Tony Award for Best Featured Actor in a Play
action filter_type
action find
entity Ed Begley
relation award received
type award
['Ed Begley', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?p WHERE { resource:Ed_Begley property:award_received ?p . ?p rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q318312
P509
Q2057971
USER
What lead to the death of Ed Begley ?
(Q318312,P509,c(Q2057971))
action filter_type
action find
entity Q318312
relation P509
type Q2057971
['Q318312', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q2057971 . resource:Q318312 property:P509 ?p }
Ed Begley
action filter_type
action find
entity Ed Begley
relation cause of death
type health problem
['Ed Begley', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:health_problem . resource:Ed_Begley property:cause_of_death ?p }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q318312,P509,c(Q2057971))
action filter_type
action find
entity Q318312
relation P509
type Q2057971
In [ANSWER] lead to the death of Ed Begley
['Q318312', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q2057971 . resource:Q318312 property:P509 ?p }
myocardial infarction
In myocardial infarction lead to the death of Ed Begley
myocardial infarction
action filter_type
action find
entity Ed Begley
relation cause of death
type health problem
['Ed Begley', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:health_problem . resource:Ed_Begley property:cause_of_death ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q318312
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q12152,P27,c(Q15617994))
action filter_type
action find
entity Q318312
relation P27
type Q15617994
['Q12152', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q318312 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Ed Begley
action filter_type
action find
entity Ed Begley
relation country of citizenship
type designation for an administrative territorial entity
['myocardial infarction', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Ed_Begley property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q12152,P27,c(Q15617994))
action filter_type
action find
entity Q318312
relation P27
type Q15617994
The [ANSWER] is that person a civilian of
['Q12152', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q318312 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
United States of America
The United States of America is that person a civilian of
United States of America
action filter_type
action find
entity Ed Begley
relation country of citizenship
type designation for an administrative territorial entity
['myocardial infarction', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Ed_Begley property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q15275719 Q234460 Q618779
USER
Which awards are parts of min number of recurring events and texts ?
(c(Q618779),P361,c(Q15275719)|c(Q234460))
action argmin
action union
action find_tuple_counts
relation P361
type Q618779
type Q15275719
action find_tuple_counts
relation P361
type Q618779
type Q234460
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q15275719'}, {'concept': 'Q234460'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?z ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?i ) WHERE { { ?n property:P361 ?v . ?n rdf:type ontology:Q618779 . ?v rdf:type ontology:Q15275719 } UNION { ?n rdf:type ontology:Q618779 . ?v rdf:type ontology:Q234460 . ?n property:P361 ?v } } GROUP BY ?n } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?c ) WHERE { { ?k rdf:type ontology:Q618779 . ?e rdf:type ontology:Q15275719 . ?k property:P361 ?e } UNION { ?k property:P361 ?e . ?e rdf:type ontology:Q234460 . ?k rdf:type ontology:Q618779 } } GROUP BY ?k } . FILTER ( ?c = ?z ) }
action argmin
action union
action find_tuple_counts
relation part of
type award
type recurring event
action find_tuple_counts
relation part of
type award
type text
[{'concept': 'award'}, 'part of', [{'concept': 'recurring event'}, {'concept': 'text'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?z ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?i ) WHERE { { ?n property:part_of ?v . ?n rdf:type ontology:award . ?v rdf:type ontology:recurring_event } UNION { ?n rdf:type ontology:award . ?v rdf:type ontology:text . ?n property:part_of ?v } } GROUP BY ?n } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?c ) WHERE { { ?k rdf:type ontology:award . ?e rdf:type ontology:recurring_event . ?k property:part_of ?e } UNION { ?k property:part_of ?e . ?e rdf:type ontology:text . ?k rdf:type ontology:award } } GROUP BY ?k } . FILTER ( ?c = ?z ) }
[]
recurring event text award
Q1285970 Q5305703 Q20890225
SYSTEM
Primetime Emmy Award for Outstanding Supporting Actor in a Comedy Series, Drama Desk Award for Outstanding Actress in a Musical, Gouden Televizier-Ring
Q20890225 Q2359546 Q3068024 Q15463524 Q16218137 Q2665874 Q5305711 Q20749418 Q1156958 Q14539726 Q14539720 Q20824563 Q3019357 Q26079956 Q5305703 Q24231374 Q225085 Q20890482 Q17142885 Q17142884 Q13452531 Q48705 Q14539974 Q17142883 Q17142882 Q1638103 Q1285970 Q17142889 Q17142888 Q2547676 Q5305701 Q22135199 Q14539884 Q23061993 Q5243452 Q5243453 Q5243450 Q5243451 Q5243456 Q5243457 Q5243454 Q5243455 Q372370 Q29597 Q900414 Q13452524 Q2050658 Q2296147 Q17142895 Q17142892 Q900494 Q17142891 Q13452528 Q17142881 Q20890462 Q11858223 Q1086189 Q23059849 Q900369 Q1562531 Q5243445 Q15046324 Q5243447 Q5243446 Q266012 Q15046323 Q14606210 Q5243449 Q5243448 Q14606194 Q4896813 Q657973 Q27639027 Q5593745 Q3404375 Q20857709 Q545970 Q16395246 Q2294693 Q1353326 Q1505691 Q900385 Q7600545 Q4243717 Q5579156 Q26084288 Q18011734 Q267950 Q21524720 Q13422138 Q11288429 Q1549393 Q15271575 Q20857713 Q3405076 Q20857717 Q20857715 Q20890467 Q696246 Q15284630 Q655056 Q17351855 Q4120984 Q14941844 Q3405797 Q3405795 Q645595 Q3405792 Q37922 Q3405790 Q23062015 Q900352 Q10855195 Q13377517 Q24137 Q900447 Q15464509 Q17142896 Q24241 Q20857721 Q23091 Q20890475 Q20890472 Q17142894 Q26481897 Q153144 Q4896676 Q20890200 Q22668611 Q27639015 Q3774289 Q20890445 Q981339 Q1170507 Q936683 Q4065707 Q610903 Q4896642 Q23061860 Q900424 Q4835656 Q4835657 Q4835654 Q4835655 Q4835652 Q4835650 Q17355204 Q4120948 Q27496509 Q10855271 Q20890454 Q84000 Q6952053 Q15464524 Q5593817 Q14539729 Q3019369 Q17142886 Q20749420 Q278244 Q11593374 Q278240 Q3019365 Q3019364
(c(Q618779),P361,c(Q15275719)|c(Q234460))
action argmin
action union
action find_tuple_counts
relation P361
type Q618779
type Q15275719
action find_tuple_counts
relation P361
type Q618779
type Q234460
Primetime Emmy Award for Outstanding supporting Actor in a Comedy Series, Drama Desk Award for Outstanding Actress in a Musical and Gouden Televizier-Ring are parts of min number of recurring events and texts
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q15275719'}, {'concept': 'Q234460'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?z ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?i ) WHERE { { ?n property:P361 ?v . ?n rdf:type ontology:Q618779 . ?v rdf:type ontology:Q15275719 } UNION { ?n rdf:type ontology:Q618779 . ?v rdf:type ontology:Q234460 . ?n property:P361 ?v } } GROUP BY ?n } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?c ) WHERE { { ?k rdf:type ontology:Q618779 . ?e rdf:type ontology:Q15275719 . ?k property:P361 ?e } UNION { ?k property:P361 ?e . ?e rdf:type ontology:Q234460 . ?k rdf:type ontology:Q618779 } } GROUP BY ?k } . FILTER ( ?c = ?z ) }
Gouden Televizier-Ring Wim Sonneveldprijs First Secretary of State Knight of the National Order of Quebec Seumas McNally Grand Prize Screen Actors Guild Award for Outstanding Performance by a Stunt Ensemble in a Motion Picture Drama Desk Award for Outstanding Featured Actor in a Musical King's Medal of Merit in Gold Order of the Paulownia Flowers Officer of the Order of Merit of the Italian Republic Knight of the Order of Merit of the Italian Republic Michelin star Daytime Emmy Award for Outstanding Lead Actress in a Drama Series Tony Award for Best Sound Design of a Play Drama Desk Award for Outstanding Actress in a Musical Ingeborg Bachmann Award 2016 César Award for Best Cinematography award for the best or most iconic program in the history of Dutch television 2000 Golden Globes 1999 Golden Globes Commandeur des Arts et des Lettres‎ César Award for Most Promising Actor Knight Grand Cross of the Order of Merit of the Italian Republic 1998 Golden Globes 1997 Golden Globes British Fashion Awards Primetime Emmy Award for Outstanding Supporting Actor in a Comedy Series 2003 Golden Globes 2002 Golden Globes Croix de guerre 1939–1945 Drama Desk Award for Outstanding Actor in a Play Collar of the Order pro merito Melitensi Grand Officer of the Order of Merit of the Italian Republic Charles Veillon prize in the Italian language Daytime Emmy Award for Outstanding Talk Show Daytime Emmy Award for Outstanding Talk Show Entertainment Daytime Emmy Award for Outstanding Morning Program Daytime Emmy Award for Outstanding Supporting Actress in a Drama Series Daytime Emmy Award for Outstanding Younger Actor in a Drama Series Daytime Emmy Award for Outstanding Younger Actress in a Drama Series Daytime Emmy Award for Outstanding Talk Show Host Daytime Emmy Award for Outstanding Talk Show Informative Knight's Cross César Award for Most Promising Actress César Award for Best Foreign Film Officier des Arts et des Lettres‎ 2009–10 ISU Speed Skating World Cup – Men's 1000 metres Drama Desk Award for Outstanding One-Person Show 2007 Golden Globes 2005 Golden Globes César Award for Best Actor 2004 Golden Globes Chevalier de l'ordre des Arts et des Lettres‎ 1996 Golden Globes Zilveren Televizier-Ster (female presenter) Daytime Emmy Award for Outstanding Performer in an Animated Program Nebula Award for Best Novella Hans Christian Andersen Award for illustration César Award for Best Writing Dr H.P. Heineken Prize for Biochemistry and Biophysics Daytime Emmy Award for Outstanding Drama Series Writing Team Daytime Emmy Award for Outstanding Lifestyle/Culinary Show Host Daytime Emmy Award for Outstanding Game Show Host Daytime Emmy Award for Outstanding Game/Audience Participation Show Nebula Award for Best Novel Daytime Emmy Award for Outstanding Drama Series Directing Team Officer of the Order of Distinction Daytime Emmy Award for Outstanding Supporting Actor in a Drama Series Daytime Emmy Award for Outstanding Legal/Courtroom Program Commander of the Order of Distinction Best Sports Movie ESPY Award Medal of Valor Zilveren Televizier-Ster (female actor) Grammy Award for Best Album Notes Prix Athanase-David Grand Cordon of the National Order of the Cedar‎ César Award for Best Original Screenplay Ridenhour Truth-Telling Prize Independent Spirit Award for Best Supporting Male Friedrich Glauser Award Robert Award for Best Danish Film César Award for Best Costume Design Gullspiran Gordon Bennett Trophy Golden Ariel Tony Award for Best Sound Design of a Musical Grand Cross of the Imperial Order of Leopold Empire Gallantry Medal Gold Medal for Human Rights Knight of the National Order of Merit Grand Cordon of the Order of the Paulownia Flowers Grand Officer Sport Australia Hall of Fame Grand Officer of the National Order of the Cedar Prix Médicis for foreign literature Officer of the National Order of the Cedar Commander of the National Order of the Cedar Televizier Aanstormend Talent Award Order of the Chrysanthemum Grand Officer of the Order of Saints Maurice and Lazarus César Award for Best First Feature Film adidas Golden Glove Magritte Award for Best Director Prix Médicis essai Governor General's Award for French-language children's literature Governor General's Award for French-language children's illustration César Award for Best Film Governor General's Award for English-language children's literature Nobel Prize in Literature Governor General's Award for English-language children's illustration Charles Veillon prize in the German language César Award for Best Production Design Officer of the Legion of Honour Knight Grand Cross with Collar of the Order of St. Olav‎ César Award for Best Director César Award for Best Editing Grand Officer of the National Order of Quebec 2008 Golden Globes César Award for Best Actress Knight of the National Order of the Cedar César Award for Best Music Written for a Film Viva Star De Bewondering 2006 Golden Globes octave d'honneur César Award for Best Animated Film Best Game ESPY Award Gouden Stuiver Gold Cross of Valour Zilveren Televizier-Ster (male actor) Grammy Award for Best Classical Album Zilveren Televizier-Tulp MTV Video Music Award for Best Overall Performance Independent Spirit Award for Best Screenplay Nebula Award for Best Novelette Ribbon of the Order of St. Andrew Nebula Award for Best Short Story Best Female Athlete ESPY Award Charles Veillon prize in the French language César Award for Best Supporting Actor BIFA Award for Best Supporting Actor BIFA Award for Best Supporting Actress BIFA Award for Best Performance by an Actor in a British Independent Film BIFA Award for Best Performance by an Actress in a British Independent Film BIFA Award for Best Foreign Independent Film BIFA Award for Best British Independent Film Adidas Golden Ball Magritte Award for Best Film Seiun Award for Best Translated Novel Knight of the Legion of Honour Zilveren Televizier-Ster (male presenter) César Award for Best Supporting Actress NAACP Image Award for Outstanding Actor in a Television Movie, Mini-Series or Dramatic Special Officer of the National Order of Quebec Grammy Award for Best Arrangement, Instrumental and Vocals Commander of the Order of Merit of the Italian Republic Daytime Emmy Award for Outstanding Children's Animated Program 2001 Golden Globes King's Medal of Merit in Silver Dr A.H. Heineken Prize for Art Knight of the Royal and Military Order of Saint Louis C.L. de Carvalho-Heineken Prize for Cognitive Science Daytime Emmy Award for Outstanding Drama Series Daytime Emmy Award for Outstanding Lead Actor in a Drama Series
Primetime Emmy Award for Outstanding supporting Actor in a Comedy Series, Drama Desk Award for Outstanding Actress in a Musical and Gouden Televizier-Ring are parts of min number of recurring events and texts
Primetime Emmy Award for Outstanding Supporting Actor in a Comedy Series Drama Desk Award for Outstanding Actress in a Musical Gouden Televizier-Ring
action argmin
action union
action find_tuple_counts
relation part of
type award
type recurring event
action find_tuple_counts
relation part of
type award
type text
[{'concept': 'award'}, 'part of', [{'concept': 'recurring event'}, {'concept': 'text'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?z ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?i ) WHERE { { ?n property:part_of ?v . ?n rdf:type ontology:award . ?v rdf:type ontology:recurring_event } UNION { ?n rdf:type ontology:award . ?v rdf:type ontology:text . ?n property:part_of ?v } } GROUP BY ?n } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?c ) WHERE { { ?k rdf:type ontology:award . ?e rdf:type ontology:recurring_event . ?k property:part_of ?e } UNION { ?k property:part_of ?e . ?e rdf:type ontology:text . ?k rdf:type ontology:award } } GROUP BY ?k } . FILTER ( ?c = ?z ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q187440 Q12152
P2176
Q8386
USER
Which drugs are used to cure myocardial infarction and urticaria ?
AND((Q12152,P2176,c(Q8386)), (Q187440,P2176,c(Q8386)))
action filter_type
action intersection
action find
entity Q12152
relation P2176
action find
entity Q187440
relation P2176
type Q8386
{'AND': [['Q12152', 'P2176', {'concept': 'Q8386'}], ['Q187440', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?n WHERE { resource:Q12152 property:P2176 ?n . resource:Q187440 property:P2176 ?n . ?n rdf:type ontology:Q8386 }
urticaria myocardial infarction
action filter_type
action intersection
action find
entity myocardial infarction
relation drug used for treatment
action find
entity urticaria
relation drug used for treatment
type drug
{'AND': [['myocardial infarction', 'drug used for treatment', {'concept': 'drug'}], ['urticaria', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?n WHERE { resource:myocardial_infarction property:drug_used_for_treatment ?n . resource:urticaria property:drug_used_for_treatment ?n . ?n rdf:type ontology:drug }
[]
drug
Q422232
SYSTEM
methotrexate
Q422232
AND((Q12152,P2176,c(Q8386)), (Q187440,P2176,c(Q8386)))
action filter_type
action intersection
action find
entity Q12152
relation P2176
action find
entity Q187440
relation P2176
type Q8386
And [ANSWER] is used to cure myocardial infarction and urticaria
{'AND': [['Q12152', 'P2176', {'concept': 'Q8386'}], ['Q187440', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?n WHERE { resource:Q12152 property:P2176 ?n . resource:Q187440 property:P2176 ?n . ?n rdf:type ontology:Q8386 }
methotrexate
And methotrexate is used to cure myocardial infarction and urticaria
methotrexate
action filter_type
action intersection
action find
entity myocardial infarction
relation drug used for treatment
action find
entity urticaria
relation drug used for treatment
type drug
{'AND': [['myocardial infarction', 'drug used for treatment', {'concept': 'drug'}], ['urticaria', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?n WHERE { resource:myocardial_infarction property:drug_used_for_treatment ?n . resource:urticaria property:drug_used_for_treatment ?n . ?n rdf:type ontology:drug }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q20128 Q20890225
P47 P17
Q15617994
USER
Which administrative territories are Gouden Televizier-Ring located in or share the border with Magliano Alpi ?
OR((Q20890225,P17,c(Q15617994)), (Q20128,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q20890225
relation P17
action find
entity Q20128
relation P47
type Q15617994
{'OR': [['Q20890225', 'P17', {'concept': 'Q15617994'}], ['Q20128', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q20890225 property:P17 ?q } UNION { resource:Q20128 property:P47 ?q } } . ?q rdf:type ontology:Q15617994 }
Magliano Alpi Gouden Televizier-Ring
action filter_type
action union
action find
entity Gouden Televizier-Ring
relation country
action find
entity Magliano Alpi
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Gouden Televizier-Ring', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Magliano Alpi', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Gouden_Televizier-Ring property:country ?q } UNION { resource:Magliano_Alpi property:shares_border_with ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q18365 Q20056 Q20059 Q20188 Q20411 Q20520 Q55 Q20481 Q20414 Q20278
SYSTEM
Some of them are Bene Vagienna, Frabosa Soprana, Frabosa Sottana, Mondovì, Rocca de' Baldi, Trinità, Netherlands, Sant'Albano Stura, Roccaforte Mondovì, Ormea
Q19372 Q55 Q20481 Q20414 Q18365 Q20059 Q20520 Q20056 Q20278 Q20188 Q20411
OR((Q20890225,P17,c(Q15617994)), (Q20128,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q20890225
relation P17
action find
entity Q20128
relation P47
type Q15617994
[ANSWERS] are Gouden Televizier-Ring located in or share the border with Magliano Alpi
{'OR': [['Q20890225', 'P17', {'concept': 'Q15617994'}], ['Q20128', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q20890225 property:P17 ?q } UNION { resource:Q20128 property:P47 ?q } } . ?q rdf:type ontology:Q15617994 }
Carrù Netherlands Sant'Albano Stura Roccaforte Mondovì Bene Vagienna Frabosa Sottana Trinità Frabosa Soprana Ormea Mondovì Rocca de' Baldi
Bene Vagienna, Frabosa Soprana, Frabosa Sottana, Mondovì, Rocca de' Baldi, Trinità, Netherlands, Sant'Albano Stura, Roccaforte Mondovì and Ormea are Gouden Televizier-Ring located in or share the border with Magliano Alpi
Bene Vagienna Frabosa Soprana Frabosa Sottana Mondovì Rocca de' Baldi Trinità Netherlands Sant'Albano Stura Roccaforte Mondovì Ormea
action filter_type
action union
action find
entity Gouden Televizier-Ring
relation country
action find
entity Magliano Alpi
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Gouden Televizier-Ring', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Magliano Alpi', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Gouden_Televizier-Ring property:country ?q } UNION { resource:Magliano_Alpi property:shares_border_with ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q5962346 Q34770 Q15617994
USER
Which administrative territories designates approximately 1 classification schemes and languages as their official language ?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
value 1
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) ?x WHERE { { ?x property:P37 ?j . ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q5962346 } UNION { ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q34770 . ?x property:P37 ?j } } GROUP BY ?x } . FILTER ( ?m = 1 ) }
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) ?x WHERE { { ?x property:official_language ?j . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:classification_scheme } UNION { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:language . ?x property:official_language ?j } } GROUP BY ?x } . FILTER ( ?m = 1 ) }
[]
classification scheme language designation for an administrative territorial entity
Q38 Q55 Q953
SYSTEM
Italy, Netherlands, Zambia
Q804 Q399 Q800 Q709 Q668 Q414 Q1948 Q783 Q784 Q493428 Q712 Q710 Q717 Q2003 Q258 Q1979 Q792 Q954 Q953 Q958 Q986 Q241 Q242 Q244 Q1974 Q811 Q53381 Q101526 Q924 Q34 Q928 Q39 Q38 Q739 Q733 Q734 Q55 Q1013 Q795587 Q693658 Q145 Q238 Q20 Q1044 Q1042 Q27 Q1049 Q1020 Q843 Q736 Q786 Q1904 Q96 Q1050 Q1989 Q686312 Q1036 Q1037 Q1033 Q1030 Q963 Q298 Q695 Q114 Q117 Q754 Q213 Q1005 Q833 Q1951 Q1009 Q243220 Q683 Q34020 Q686 Q760 Q77 Q774 Q1014 Q678 Q233 Q672 Q1952 Q2023
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
value 1
[ANSWERS] designate approximately 1 classification schemes and languages as their official language
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) ?x WHERE { { ?x property:P37 ?j . ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q5962346 } UNION { ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q34770 . ?x property:P37 ?j } } GROUP BY ?x } . FILTER ( ?m = 1 ) }
Panama Armenia Costa Rica Marshall Islands India Argentina Manitoba Honduras Dominica Mistretta Fiji Kiribati Venezuela Newfoundland and Labrador South Africa Prince Edward Island El Salvador Zimbabwe Zambia South Sudan Eritrea Cuba Belize Barbados British Columbia Nicaragua Tolmezzo Rovetta Tanzania Sweden Philippines Switzerland Italy Colombia Paraguay Guyana Netherlands Lesotho Escuintla Izabal Department United Kingdom San Marino Norway Sierra Leone Seychelles Ireland Sudan Malawi Pakistan Ecuador Dominican Republic Ontario Mexico Swaziland Saskatchewan Duchy of Amalfi Uganda Rwanda Nigeria Namibia Botswana Chile Palau Kenya Ghana Trinidad and Tobago Czech Republic Gambia Malaysia Alberta Cameroon Rocca di Cave Samoa Niue Vanuatu Saint Lucia Uruguay Guatemala Liberia Tonga Malta Tuvalu Nova Scotia Nunavut
Italy, Netherlands and Zambia designate approximately 1 classification schemes and languages as their official language
Italy Netherlands Zambia
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) ?x WHERE { { ?x property:official_language ?j . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:classification_scheme } UNION { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:language . ?x property:official_language ?j } } GROUP BY ?x } . FILTER ( ?m = 1 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q15617994 Q1048835
USER
How many administrative territories or political territories have diplomatic relationships with that administrative territory ?
(Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835)) (Q38,P530,c(Q15617994)) (Q38,P530,c(Q1048835)) (Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835)) (Q953,P530,c(Q15617994)) (Q953,P530,c(Q1048835))
['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}] ['Q38', 'P530', {'concept': 'Q15617994'}] ['Q38', 'P530', {'concept': 'Q1048835'}] ['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}] ['Q953', 'P530', {'concept': 'Q15617994'}] ['Q953', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q22442862 property:P530 ?z } UNION { resource:Q22442862 property:P530 ?y } UNION { resource:Q977238 property:P530 ?z } UNION { resource:Q977238 property:P530 ?y } UNION { resource:Q22442862 property:P530 ?z } UNION { resource:Q22442862 property:P530 ?y } UNION { resource:Q953 property:P530 ?z } UNION { resource:Q953 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Zambia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Zambia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Netherlands property:diplomatic_relation ?z } UNION { resource:Netherlands property:diplomatic_relation ?y } UNION { resource:Italy property:diplomatic_relation ?z } UNION { resource:Italy property:diplomatic_relation ?y } UNION { resource:Netherlands property:diplomatic_relation ?z } UNION { resource:Netherlands property:diplomatic_relation ?y } UNION { resource:Zambia property:diplomatic_relation ?z } UNION { resource:Zambia property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
designation for an administrative territorial entity political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q38
SYSTEM
Did you mean Italy ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q22442862 property:P530 ?z } UNION { resource:Q22442862 property:P530 ?y } UNION { resource:Q977238 property:P530 ?z } UNION { resource:Q977238 property:P530 ?y } UNION { resource:Q22442862 property:P530 ?z } UNION { resource:Q22442862 property:P530 ?y } UNION { resource:Q953 property:P530 ?z } UNION { resource:Q953 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Did you mean Italy ?
Italy
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Netherlands property:diplomatic_relation ?z } UNION { resource:Netherlands property:diplomatic_relation ?y } UNION { resource:Italy property:diplomatic_relation ?z } UNION { resource:Italy property:diplomatic_relation ?y } UNION { resource:Netherlands property:diplomatic_relation ?z } UNION { resource:Netherlands property:diplomatic_relation ?y } UNION { resource:Zambia property:diplomatic_relation ?z } UNION { resource:Zambia property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Netherlands. Could you tell me the answer for that?
(Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835)) (Q38,P530,c(Q15617994)) (Q38,P530,c(Q1048835)) (Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835)) (Q953,P530,c(Q15617994)) (Q953,P530,c(Q1048835))
Q55
['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}] ['Q38', 'P530', {'concept': 'Q15617994'}] ['Q38', 'P530', {'concept': 'Q1048835'}] ['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}] ['Q953', 'P530', {'concept': 'Q15617994'}] ['Q953', 'P530', {'concept': 'Q1048835'}]
['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Zambia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Zambia', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
3
Q408 Q38 Q183
(Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835)) (Q38,P530,c(Q15617994)) (Q38,P530,c(Q1048835)) (Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835)) (Q953,P530,c(Q15617994)) (Q953,P530,c(Q1048835))
[ANSWER]
['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}] ['Q38', 'P530', {'concept': 'Q15617994'}] ['Q38', 'P530', {'concept': 'Q1048835'}] ['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}] ['Q953', 'P530', {'concept': 'Q15617994'}] ['Q953', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q22442862 property:P530 ?z } UNION { resource:Q22442862 property:P530 ?y } UNION { resource:Q977238 property:P530 ?z } UNION { resource:Q977238 property:P530 ?y } UNION { resource:Q22442862 property:P530 ?z } UNION { resource:Q22442862 property:P530 ?y } UNION { resource:Q953 property:P530 ?z } UNION { resource:Q953 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Australia Italy Germany
3
['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Zambia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Zambia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Netherlands property:diplomatic_relation ?z } UNION { resource:Netherlands property:diplomatic_relation ?y } UNION { resource:Italy property:diplomatic_relation ?z } UNION { resource:Italy property:diplomatic_relation ?y } UNION { resource:Netherlands property:diplomatic_relation ?z } UNION { resource:Netherlands property:diplomatic_relation ?y } UNION { resource:Zambia property:diplomatic_relation ?z } UNION { resource:Zambia property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2211240 Q422232
P2176
Q2057971
USER
Which health problems are cured by methotrexate or triamcinolone acetonide ?
OR((c(Q2057971),P2176,Q422232), (c(Q2057971),P2176,Q2211240))
action filter_type
action union
action find_reverse
entity Q422232
relation P2176
action find_reverse
entity Q2211240
relation P2176
type Q2057971
{'OR': [[{'concept': 'Q2057971'}, 'P2176', 'Q422232'], [{'concept': 'Q2057971'}, 'P2176', 'Q2211240']]}
SELECT DISTINCT ?t WHERE { { { ?t property:P2176 resource:Q422232 } UNION { ?t property:P2176 resource:Q2211240 } } . ?t rdf:type ontology:Q2057971 }
triamcinolone acetonide methotrexate
action filter_type
action union
action find_reverse
entity methotrexate
relation drug used for treatment
action find_reverse
entity triamcinolone acetonide
relation drug used for treatment
type health problem
{'OR': [[{'concept': 'health problem'}, 'drug used for treatment', 'methotrexate'], [{'concept': 'health problem'}, 'drug used for treatment', 'triamcinolone acetonide']]}
SELECT DISTINCT ?t WHERE { { { ?t property:drug_used_for_treatment resource:methotrexate } UNION { ?t property:drug_used_for_treatment resource:triamcinolone_acetonide } } . ?t rdf:type ontology:health_problem }
[]
health problem
Q18975788 Q18556697 Q180614 Q5075435 Q114085 Q324464 Q35869 Q511097 Q268667 Q549534
SYSTEM
Some of them are spindle cell sarcoma, human immunodeficiency virus infectious disease, melanoma, alopecia areata, rhinitis, Testicular cancer, asthma, psoriatic arthritis, atopic dermatitis, osteosarcoma
Q18556331 Q1783924 Q511097 Q372701 Q769595 Q1891209 Q6708277 Q268667 Q389735 Q1477 Q4676432 Q128581 Q133087 Q114085 Q189588 Q180614 Q18556697 Q187255 Q208414 Q631361 Q8285 Q35869 Q18556020 Q5075435 Q3041498 Q18975720 Q187440 Q18975788 Q29496 Q881855 Q861224 Q180152 Q549534 Q12152 Q12156 Q18554884 Q324464 Q550455 Q62736 Q159701
OR((c(Q2057971),P2176,Q422232), (c(Q2057971),P2176,Q2211240))
action filter_type
action union
action find_reverse
entity Q422232
relation P2176
action find_reverse
entity Q2211240
relation P2176
type Q2057971
[ANSWERS] are cured by methotrexate or triamcinolone acetonide
{'OR': [[{'concept': 'Q2057971'}, 'P2176', 'Q422232'], [{'concept': 'Q2057971'}, 'P2176', 'Q2211240']]}
SELECT DISTINCT ?t WHERE { { { ?t property:P2176 resource:Q422232 } UNION { ?t property:P2176 resource:Q2211240 } } . ?t rdf:type ontology:Q2057971 }
cystoid macular edema head and neck cancer psoriatic arthritis esophageal cancer meibomian cyst mycosis fungoides lymphoid leukemia atopic dermatitis cardiovascular disease ulcerative colitis pustulosis of palm and sole breast cancer gout rhinitis stomach cancer melanoma human immunodeficiency virus infectious disease rheumatoid arthritis lymphoma diabetic retinopathy myasthenia gravis asthma lung benign neoplasm alopecia areata eye disease trophoblastic neoplasm urticaria spindle cell sarcoma leukemia gestational trophoblastic neoplasm juvenile idiopathic arthritis Vitiligo osteosarcoma myocardial infarction malaria retinal vein occlusion Testicular cancer retinal disease osteoarthritis/osteodystrophy glaucoma
Spindle cell sarcoma, human immunodeficiency virus infectious disease, melanoma, alopecia areata, rhinitis, Testicular cancer, asthma, psoriatic arthritis, atopic dermatitis and osteosarcoma are cured by methotrexate or triamcinolone acetonide
spindle cell sarcoma human immunodeficiency virus infectious disease melanoma alopecia areata rhinitis Testicular cancer asthma psoriatic arthritis atopic dermatitis osteosarcoma
action filter_type
action union
action find_reverse
entity methotrexate
relation drug used for treatment
action find_reverse
entity triamcinolone acetonide
relation drug used for treatment
type health problem
{'OR': [[{'concept': 'health problem'}, 'drug used for treatment', 'methotrexate'], [{'concept': 'health problem'}, 'drug used for treatment', 'triamcinolone acetonide']]}
SELECT DISTINCT ?t WHERE { { { ?t property:drug_used_for_treatment resource:methotrexate } UNION { ?t property:drug_used_for_treatment resource:triamcinolone_acetonide } } . ?t rdf:type ontology:health_problem }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q11971365
P828
Q2057971 Q3839081
USER
How many disasters do more number of health problems cause than Førdesveten plane crash ?
(c(Q3839081),P828,c(Q2057971))
action count
action greater
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
action count
action filter_type
action find
entity Q11971365
relation P828
type Q3839081
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?e ) WHERE { ?z rdf:type ontology:Q3839081 . ?u rdf:type ontology:Q2057971 . ?z property:P828 ?u } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { resource:Q11971365 property:P828 ?x . ?x rdf:type ontology:Q3839081 } } . FILTER ( ?e > ?s ) }
Førdesveten plane crash
action count
action greater
action find_tuple_counts
relation has cause
type disaster
type health problem
action count
action filter_type
action find
entity Førdesveten plane crash
relation has cause
type disaster
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?e ) WHERE { ?z rdf:type ontology:disaster . ?u rdf:type ontology:health_problem . ?z property:has_cause ?u } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { resource:Førdesveten_plane_crash property:has_cause ?x . ?x rdf:type ontology:disaster } } . FILTER ( ?e > ?s ) }
[]
health problem disaster
SYSTEM
5
Q1470579 Q3589134 Q3589133 Q2036106 Q2035019
(c(Q3839081),P828,c(Q2057971))
action count
action greater
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
action count
action filter_type
action find
entity Q11971365
relation P828
type Q3839081
[ANSWER]
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?e ) WHERE { ?z rdf:type ontology:Q3839081 . ?u rdf:type ontology:Q2057971 . ?z property:P828 ?u } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { resource:Q11971365 property:P828 ?x . ?x rdf:type ontology:Q3839081 } } . FILTER ( ?e > ?s ) }
Otter Valley polio epidemic measles epidemic France 2008 chikungunya epidemic on Réunion Polio Epidemic 1916 1854 Broad Street cholera outbreak
5
action count
action greater
action find_tuple_counts
relation has cause
type disaster
type health problem
action count
action filter_type
action find
entity Førdesveten plane crash
relation has cause
type disaster
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?e ) WHERE { ?z rdf:type ontology:disaster . ?u rdf:type ontology:health_problem . ?z property:has_cause ?u } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { resource:Førdesveten_plane_crash property:has_cause ?x . ?x rdf:type ontology:disaster } } . FILTER ( ?e > ?s ) }
[]